|
SAP NetWeaver 7.40 SP 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.rf.common.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(IAbsoluteUri other)
|
boolean |
equals(IHierarchicalUri 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)
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. |
IRid |
mapToResourceID(IUriReference ref)
TBD: Description of the Method. |
IRid |
mapToResourceID(IUriReference ref,
UriCodec codec)
TBD: Description of the Method. |
protected static StringBuffer |
normalizePath(StringBuffer sb)
|
IAbsoluteUri |
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(IAbsoluteUri other)
public boolean equals(IHierarchicalUri other)
public boolean equals(HttpUrl other)
public IHierarchicalUri appendPath(String path)
appendPath in interface IHierarchicalUripath - TBD: Description of the incoming method parameter
public String getScheme()
getScheme in interface IAbsoluteUripublic String getRemainder()
getRemainder in interface IAbsoluteUripublic 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 - TBD: Description of the incoming method parameter
public IAbsoluteUri resolve(IUriReference reference)
resolve in interface IAbsoluteUrireference - TBD: Description of the incoming method parameter
public IUriReference unresolve(IHierarchicalUri other,
String fragment)
unresolve in interface IHierarchicalUriother - uri to unresolvefragment - to add to result reference
public IRid mapToResourceID(IUriReference ref)
IHierarchicalUri
mapToResourceID in interface IHierarchicalUriref - TBD: Description of the incoming method parameter
public IRid mapToResourceID(IUriReference ref,
UriCodec codec)
IHierarchicalUri
mapToResourceID in interface IHierarchicalUriref - TBD: Description of the incoming method parametercodec - TBD: Description of the incoming method parameter
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 - TBD: Description of the incoming method parameter
public IUriReference mapToAbsolutePath(Rid wcmPath)
IHierarchicalUri
mapToAbsolutePath in interface IHierarchicalUriwcmPath - TBD: Description of the incoming method parameter
public IUriReference mapToAbsolutePath(Rid wcmPath,
UriCodec codec)
IHierarchicalUri
mapToAbsolutePath in interface IHierarchicalUriwcmPath - TBD: Description of the incoming method parametercodec - TBD: Description of the incoming method parameter
public IHierarchicalUri mapToAbsoluteUri(Rid wcmPath)
IHierarchicalUri
mapToAbsoluteUri in interface IHierarchicalUriwcmPath - TBD: Description of the incoming method parameter
public IHierarchicalUri mapToAbsoluteUri(Rid wcmPath,
UriCodec codec)
IHierarchicalUri
mapToAbsoluteUri in interface IHierarchicalUriwcmPath - TBD: Description of the incoming method parametercodec - TBD: Description of the incoming method parameter
public 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()
IAbsoluteUri
toExternalForm in interface IAbsoluteUriprotected 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 06 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||