|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.netweaver.bc.rf.common.HttpUrl
An IHierarchicalUri implementation for HTTP/HTTPS URLs.
Copyright (c) SAP AG 2001-2003
| Field Summary | |
static int |
DEFAULT_PORT
|
| Constructor Summary | |
HttpUrl(java.lang.String scheme,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query)
|
|
HttpUrl(java.lang.String scheme,
java.lang.String authority,
java.lang.String path,
java.lang.String query)
|
|
| Method Summary | |
IHierarchicalUri |
appendPath(java.lang.String path)
Append the given path segment to the current path of this uri. |
boolean |
equals(HttpUrl other)
|
boolean |
equals(IAbsoluteUri other)
|
boolean |
equals(IHierarchicalUri other)
|
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getAuthority()
Return authority part of this hierarchical Uri. |
java.lang.String |
getHost()
Return the host name of this uri |
java.lang.String |
getPath()
Return path of this Uri or, if not there, the emtpy string |
java.lang.String[] |
getPathSegments()
Return the segments of the uri path |
int |
getPort()
Return the port number of this uri |
java.lang.String |
getQuery()
Return query of this Uri or, if not there, null |
java.lang.String |
getRemainder()
Get the remainder of this Uri (part after scheme without ':'). |
IHierarchicalUri |
getRoot()
Returns the uri of the root collection (path = "/"). |
java.lang.String |
getScheme()
Get the scheme of this Uri (without ':'). |
int |
hashCode()
|
boolean |
isAncestorOf(IHierarchicalUri other)
Determine if this Uri is ancestor of other uri |
IUriReference |
mapToAbsolutePath(IUriReference ref)
Given this Uri as the base, map the uri reference to a uri reference with absolute path component. |
IUriReference |
mapToAbsolutePath(Rid wcmPath)
TBD: Description of the Method. |
IUriReference |
mapToAbsolutePath(Rid wcmPath,
UriCodec codec)
TBD: Description of the Method. |
IHierarchicalUri |
mapToAbsoluteUri(Rid wcmPath)
TBD: Description of the Method. |
IHierarchicalUri |
mapToAbsoluteUri(Rid wcmPath,
UriCodec codec)
TBD: Description of the Method. |
Rid |
mapToResourceID(IUriReference ref)
TBD: Description of the Method. |
Rid |
mapToResourceID(IUriReference ref,
UriCodec codec)
TBD: Description of the Method. |
protected static java.lang.StringBuffer |
normalizePath(java.lang.StringBuffer sb)
|
IAbsoluteUri |
resolve(IUriReference reference)
Resolve the uri reference in the context of this Uri. |
IHierarchicalUri |
setPath(java.lang.String path)
Construct a new object of same type with the given path. |
IHierarchicalUri |
setQuery(java.lang.String query)
Construct a new object of same type with the given query. |
java.lang.String |
toExternalForm()
Returns a string representation according to RFC 2396 of this uri. |
java.lang.String |
toString()
|
IUriReference |
unresolve(IHierarchicalUri other,
java.lang.String fragment)
Convert the given uri to a relative uri reference with this uri as base. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static int DEFAULT_PORT
| Constructor Detail |
public HttpUrl(java.lang.String scheme,
java.lang.String host,
int port,
java.lang.String path,
java.lang.String query)
throws java.lang.IllegalArgumentException
public HttpUrl(java.lang.String scheme,
java.lang.String authority,
java.lang.String path,
java.lang.String query)
throws java.lang.IllegalArgumentException
| Method Detail |
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic boolean equals(IAbsoluteUri other)
public boolean equals(IHierarchicalUri other)
public boolean equals(HttpUrl other)
public IHierarchicalUri appendPath(java.lang.String path)
appendPath in interface IHierarchicalUripath - TBD: Description of the incoming method parameterpublic java.lang.String getScheme()
getScheme in interface IAbsoluteUripublic java.lang.String getRemainder()
getRemainder in interface IAbsoluteUripublic java.lang.String getAuthority()
getAuthority in interface IHierarchicalUripublic java.lang.String getHost()
public int getPort()
public java.lang.String getPath()
getPath in interface IHierarchicalUripublic java.lang.String[] getPathSegments()
getPathSegments in interface IHierarchicalUripublic java.lang.String getQuery()
getQuery in interface IHierarchicalUripublic IHierarchicalUri getRoot()
getRoot in interface IHierarchicalUripublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isAncestorOf(IHierarchicalUri other)
isAncestorOf in interface IHierarchicalUriother - TBD: Description of the incoming method parameterpublic IAbsoluteUri resolve(IUriReference reference)
resolve in interface IAbsoluteUrireference - TBD: Description of the incoming method parameter
public IUriReference unresolve(IHierarchicalUri other,
java.lang.String fragment)
unresolve in interface IHierarchicalUriother - uri to unresolvefragment - to add to result referencepublic Rid mapToResourceID(IUriReference ref)
IHierarchicalUrimapToResourceID in interface IHierarchicalUricom.sap.netweaver.bc.rf.common.IHierarchicalUriref - TBD: Description of the incoming method parameter
public Rid mapToResourceID(IUriReference ref,
UriCodec codec)
IHierarchicalUrimapToResourceID in interface IHierarchicalUricom.sap.netweaver.bc.rf.common.IHierarchicalUriref - TBD: Description of the incoming method parametercodec - TBD: Description of the incoming method parameterpublic IUriReference mapToAbsolutePath(IUriReference ref)
Example: "http://host/docs" + "test%203", gives "/test%203" Example: "http://host/docs/" + "test%203", gives "/docs/test%203" Example: "http://host/docs" + "http://another/docs/test", gives "http://another/docs/test"
mapToAbsolutePath in interface IHierarchicalUriref - TBD: Description of the incoming method parameterpublic IUriReference mapToAbsolutePath(Rid wcmPath)
IHierarchicalUrimapToAbsolutePath in interface IHierarchicalUricom.sap.netweaver.bc.rf.common.IHierarchicalUriwcmPath - TBD: Description of the incoming method parameter
public IUriReference mapToAbsolutePath(Rid wcmPath,
UriCodec codec)
IHierarchicalUrimapToAbsolutePath in interface IHierarchicalUricom.sap.netweaver.bc.rf.common.IHierarchicalUriwcmPath - TBD: Description of the incoming method parametercodec - TBD: Description of the incoming method parameterpublic IHierarchicalUri mapToAbsoluteUri(Rid wcmPath)
IHierarchicalUrimapToAbsoluteUri in interface IHierarchicalUricom.sap.netweaver.bc.rf.common.IHierarchicalUriwcmPath - TBD: Description of the incoming method parameter
public IHierarchicalUri mapToAbsoluteUri(Rid wcmPath,
UriCodec codec)
IHierarchicalUrimapToAbsoluteUri in interface IHierarchicalUricom.sap.netweaver.bc.rf.common.IHierarchicalUriwcmPath - TBD: Description of the incoming method parametercodec - TBD: Description of the incoming method parameterpublic IHierarchicalUri setQuery(java.lang.String query)
IHierarchicalUrinull , the new uri will be without query. The query string
must be in RFC 2396 encoded form. See UriQuery for manipulation of
query strings.setQuery in interface IHierarchicalUricom.sap.netweaver.bc.rf.common.IHierarchicalUriquery - encoded query string for returned objectpublic IHierarchicalUri setPath(java.lang.String path)
IHierarchicalUri
null , the new uri will have the root path /. The path string must
be in RFC 2396 encoded form. See URICodec. The query of the
resulting uri will always be empty.setPath in interface IHierarchicalUricom.sap.netweaver.bc.rf.common.IHierarchicalUripath - encoded path string for returned objectpublic java.lang.String toExternalForm()
IAbsoluteUritoExternalForm in interface IAbsoluteUricom.sap.netweaver.bc.rf.common.IAbsoluteUriprotected static java.lang.StringBuffer normalizePath(java.lang.StringBuffer sb)
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||