|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.util.uri.HttpUrl
public class HttpUrl
An IHierarchicalUri implementation for HTTP/HTTPS URLs.
Copyright (c) SAP AG 2001-2003
| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
|
| Constructor Summary | |
|---|---|
HttpUrl(String scheme,
String host,
int port,
String path,
String query)
|
|
HttpUrl(String scheme,
String authority,
String path,
String query)
|
|
| Method Summary | |
|---|---|
IHierarchicalUri |
appendPath(String path)
Append the given path segment to the current path of this uri. |
boolean |
equals(HttpUrl other)
|
boolean |
equals(IHierarchicalUri other)
|
boolean |
equals(IUri other)
|
boolean |
equals(Object other)
|
String |
getAuthority()
Return authority part of this hierarchical Uri. |
String |
getHost()
Return the host name of this uri |
String |
getPath()
Return path of this Uri or, if not there, the emtpy string |
String[] |
getPathSegments()
Return the segments of the uri path |
int |
getPort()
Return the port number of this uri |
String |
getQuery()
Return query of this Uri or, if not there, null |
String |
getRemainder()
Get the remainder of this Uri (part after scheme without ':'). |
IHierarchicalUri |
getRoot()
Returns the uri of the root collection (path = "/"). |
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)
|
IUriReference |
mapToAbsolutePath(RID wcmPath,
URICodec codec)
|
IUriReference |
mapToAbsolutePath(URI wcmPath)
Deprecated. As of EP5 SP6, replaced by mapToAbsolutePath(RID) |
IUriReference |
mapToAbsolutePath(URI wcmPath,
URICodec codec)
Deprecated. As of EP5 SP6, replaced by mapToAbsolutePath(RID, URICodec) |
IHierarchicalUri |
mapToAbsoluteUri(RID wcmPath)
|
IHierarchicalUri |
mapToAbsoluteUri(RID wcmPath,
URICodec codec)
|
IHierarchicalUri |
mapToAbsoluteUri(URI wcmPath)
Deprecated. As of EP5 SP6, replaced by #mapToAbsoluteURI(RID)
Given this Uri as the base of the WCM repository, map the WCM Path to a
absolute uri. Example: "http://host/docs" + "test 3", gives "http://host/docs/test%203" Example: "http://host/docs" + "/fs/test", gives "http://host/docs/fs/test" |
IHierarchicalUri |
mapToAbsoluteUri(URI wcmPath,
URICodec codec)
Deprecated. As of EP5 SP6, replaced by #mapToAbsoluteURI(RID, URICodec)
Given this Uri as the base of the WCM repository, map the WCM Path to a
absolute uri. Example: "http://host/docs" + "test 3", gives "http://host/docs/test%203" Example: "http://host/docs" + "/fs/test", gives "http://host/docs/fs/test" |
RID |
mapToResourceID(IUriReference ref)
|
RID |
mapToResourceID(IUriReference ref,
URICodec codec)
|
URI |
mapToWcmPath(IUriReference ref)
Deprecated. As of EP5 SP6, replaced by mapToResourceID(IUriReference) |
URI |
mapToWcmPath(IUriReference ref,
URICodec codec)
Deprecated. As of EP5 SP6, replaced by mapToResourceID(IUriReference, URICodec) |
protected static StringBuffer |
normalizePath(StringBuffer sb)
|
IUri |
resolve(IUriReference reference)
Resolve the uri reference in the context of this Uri. |
IHierarchicalUri |
setPath(String path)
Construct a new object of same type with the given path. |
IHierarchicalUri |
setQuery(String query)
Construct a new object of same type with the given query. |
String |
toExternalForm()
Returns a string representation according to RFC 2396 of this URI. |
String |
toString()
|
IUriReference |
unresolve(IHierarchicalUri other,
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(String scheme,
String host,
int port,
String path,
String query)
throws IllegalArgumentException
IllegalArgumentException
public HttpUrl(String scheme,
String authority,
String path,
String query)
throws IllegalArgumentException
IllegalArgumentException| Method Detail |
|---|
public boolean equals(Object other)
equals in class Objectpublic boolean equals(IUri other)
public boolean equals(IHierarchicalUri other)
public boolean equals(HttpUrl other)
public IHierarchicalUri appendPath(String path)
appendPath in interface IHierarchicalUripath - to be appended
public String getScheme()
getScheme in interface IUripublic String getRemainder()
getRemainder in interface IUripublic String getAuthority()
getAuthority in interface IHierarchicalUripublic String getHost()
public int getPort()
public String getPath()
getPath in interface IHierarchicalUripublic String[] getPathSegments()
getPathSegments in interface IHierarchicalUripublic String getQuery()
getQuery in interface IHierarchicalUripublic IHierarchicalUri getRoot()
getRoot in interface IHierarchicalUripublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean isAncestorOf(IHierarchicalUri other)
isAncestorOf in interface IHierarchicalUriother - uri to check on
public IUri resolve(IUriReference reference)
throws IllegalArgumentException
resolve in interface IUrireference - to be resolved
IllegalArgumentException
public IUriReference unresolve(IHierarchicalUri other,
String fragment)
unresolve in interface IHierarchicalUriother - uri to unresolvefragment - to add to result reference
public URI mapToWcmPath(IUriReference ref)
mapToResourceID(IUriReference)
mapToWcmPath in interface IHierarchicalUriref - the uri reference to map
null if not possiblepublic RID mapToResourceID(IUriReference ref)
mapToResourceID in interface IHierarchicalUri
public URI mapToWcmPath(IUriReference ref,
URICodec codec)
mapToResourceID(IUriReference, URICodec)
mapToWcmPath in interface IHierarchicalUriref - the uri reference to mapcodec - to use for uri decoding
null if not possible
public RID mapToResourceID(IUriReference ref,
URICodec codec)
mapToResourceID in interface IHierarchicalUripublic IUriReference mapToAbsolutePath(URI wcmPath)
mapToAbsolutePath(RID)
mapToAbsolutePath in interface IHierarchicalUriwcmPath - to map
public IUriReference mapToAbsolutePath(URI wcmPath,
URICodec codec)
mapToAbsolutePath(RID, URICodec)
mapToAbsolutePath in interface IHierarchicalUriwcmPath - to mapcodec - to use for uri encoding
public IHierarchicalUri mapToAbsoluteUri(URI wcmPath)
#mapToAbsoluteURI(RID)
Given this Uri as the base of the WCM repository, map the WCM Path to a
absolute uri. Example: "http://host/docs" + "test 3", gives "http://host/docs/test%203" Example: "http://host/docs" + "/fs/test", gives "http://host/docs/fs/test"
mapToAbsoluteUri in interface IHierarchicalUriwcmPath - to map
public IHierarchicalUri mapToAbsoluteUri(URI wcmPath,
URICodec codec)
#mapToAbsoluteURI(RID, URICodec)
Given this Uri as the base of the WCM repository, map the WCM Path to a
absolute uri. Example: "http://host/docs" + "test 3", gives "http://host/docs/test%203" Example: "http://host/docs" + "/fs/test", gives "http://host/docs/fs/test"
mapToAbsoluteUri in interface IHierarchicalUriwcmPath - to mapcodec - to use for uri encoding
public 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 - uri reference to be mapped
public IUriReference mapToAbsolutePath(RID wcmPath)
mapToAbsolutePath in interface IHierarchicalUri
public IUriReference mapToAbsolutePath(RID wcmPath,
URICodec codec)
mapToAbsolutePath in interface IHierarchicalUripublic IHierarchicalUri mapToAbsoluteUri(RID wcmPath)
mapToAbsoluteUri in interface IHierarchicalUri
public IHierarchicalUri mapToAbsoluteUri(RID wcmPath,
URICodec codec)
mapToAbsoluteUri in interface IHierarchicalUripublic IHierarchicalUri setQuery(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 IHierarchicalUriquery - encoded query string for returned object
public IHierarchicalUri setPath(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 IHierarchicalUripath - encoded path string for returned object
public String toExternalForm()
IUri
toExternalForm in interface IUriprotected static StringBuffer normalizePath(StringBuffer sb)
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||