|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.protocolhandler.xmldb.XmldbURL
public class XmldbURL
A utility class for xmldb URLs. Since, java.net.URL is final this class
acts as a wrapper, convenience methods have been added.
Example:
xmldb:exist://username:password@hostname:8080/exist/xmlrpc/db/collection/document.xml
Note: A collection URL ends with a "/":
xmldb:exist://hostname:8080/exist/xmlrpc/db/collection/
URI
,
URL
,
XmldbURI
Constructor Summary | |
---|---|
XmldbURL(String txt)
Creates a new instance of XmldbURL using an String. |
|
XmldbURL(URI uri)
Creates a new instance of XmldbURL using an URI object. |
|
XmldbURL(URL url)
Creates a new instance of XmldbURL using an URL object. |
|
XmldbURL(XmldbURI xmldbURI)
Creates a new instance of XmldbURL using an XmldbURI object. |
Method Summary | |
---|---|
String |
getAuthority()
xmldb:exist://username:password@hostname:8080/exist/xmlrpc/db/collection/document.xml?query#fragment |
String |
getCollection()
xmldb:exist://username:password@hostname:8080/exist/xmlrpc/db/collection/document.xml |
String |
getCollectionPath()
xmldb:exist://username:password@hostname:8080:/exist/xmlrpc/db/collection/document.xml |
String |
getContext()
xmldb:exist://username:password@hostname:8080/exist/xmlrpc/db/collection/document.xml?query#fragment Return context, null if not available. |
String |
getDocumentName()
xmldb:exist://username:password@hostname:8080/exist/xmlrpc/db/collection/document.xml |
String |
getHost()
xmldb:exist://username:password@hostname:8080/exist/xmlrpc/db/collection/document.xml |
String |
getInstanceName()
Get eXist instance name. |
String |
getPassword()
xmldb:exist://username:password@hostname:8080/exist/xmlrpc/db/collection/document.xml |
String |
getPath()
xmldb:exist://username:password@hostname:8080:/exist/xmlrpc/db/collection/document.xml |
int |
getPort()
xmldb:exist://username:password@hostname:8080/exist/xmlrpc/db/collection/document.xml |
String |
getProtocol()
xmldb:exist://username:password@hostname:8080/exist/xmlrpc/db/collection/document.xml |
String |
getQuery()
xmldb:exist://username:password@hostname:8080/exist/xmlrpc/db/collection/document.xml?query#fragment |
URL |
getURL()
|
String |
getUserInfo()
xmldb:exist://username:password@hostname:8080/exist/xmlrpc/db/collection/document.xml |
String |
getUsername()
xmldb:exist://username:password@hostname:8080/exist/xmlrpc/db/collection/document.xml |
String |
getXmlRpcURL()
Get http:// URL from xmldb:exist:// URL xmldb:exist://username:password@hostname:8080:/exist/xmlrpc/db/collection/document.xml |
boolean |
hasUserInfo()
Does the URL have at least a username? |
boolean |
isEmbedded()
Get information wether URL is an embedded URL. |
String |
toString()
Get textual representation of URL. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XmldbURL(XmldbURI xmldbURI) throws MalformedURLException
xmldbURI
- Resource location.
MalformedURLException
public XmldbURL(URL url) throws MalformedURLException
url
- Resource location.
MalformedURLException
public XmldbURL(URI uri) throws MalformedURLException
uri
- Resource location.
MalformedURLException
public XmldbURL(String txt) throws MalformedURLException
txt
- Resource location.
MalformedURLException
Method Detail |
---|
public String getUserInfo()
URL.getUserInfo()
public String getUsername()
public String getPassword()
public URL getURL()
public String getAuthority()
URL.getAuthority()
public String getContext()
public String getCollection()
public String getDocumentName()
public String getProtocol()
URL.getProtocol()
public String getHost()
URL.getProtocol()
public int getPort()
URL.getPort()
public String getPath()
URL.getPath()
public String getQuery()
URL.getQuery()
public String getCollectionPath()
public String getXmlRpcURL()
public boolean hasUserInfo()
public String getInstanceName()
public String toString()
toString
in class Object
URL.toString()
public boolean isEmbedded()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |