|
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.UriReference
public class UriReference
A RFC2396 reference implementation.
Copyright (c) SAP AG 2001-2005
| Constructor Summary | |
|---|---|
UriReference(IUriReference reference,
String fragmentIdentifier)
|
|
UriReference(IUri uri,
String fragmentIdentifier)
Construct new absolute uri reference. |
|
UriReference(String path,
String query,
String fragment)
Construct new relative uri reference without authority and scheme. |
|
UriReference(String authority,
String path,
String query,
String fragment)
Construct new relative uri reference without scheme. |
|
UriReference(String scheme,
String authority,
String path,
String query,
String fragment)
Construct new relative uri reference with scheme. |
|
| Method Summary | |
|---|---|
IUriReference |
appendPath(String path)
Create a new uri reference by appending the given path to any existing path in the uri reference. |
boolean |
equals(IUriReference other)
|
boolean |
equals(Object other)
|
boolean |
equals(UriReference other)
|
String |
getAuthority()
Get the authority of the reference |
String |
getFragmentIdentifier()
Get the fragment identifier (without '#') of the uri |
String |
getPath()
Get the path of the reference |
String |
getQuery()
Get the query of the reference |
String |
getScheme()
Get the scheme of the reference |
IUri |
getUri()
Get the uri if the reference is absolute |
int |
hashCode()
|
boolean |
isAbsolute()
Determine if the reference is absolute |
IUriReference |
resolveWith(IUri base)
With base Uri, resolve this reference to an absolute reference. |
IUriReference |
setQuery(String query)
Gets a new URI reference resulting from setting the query of this URI reference to the given query. |
String |
toExternalForm()
Returns a string representation according to RFC 2396 of this uri reference. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UriReference(IUri uri,
String fragmentIdentifier)
uri - the absolute urifragmentIdentifier - the fragment of the uri reference
public UriReference(String path,
String query,
String fragment)
path - the path of the reference or emptyfragment - used in reference or null
public UriReference(String authority,
String path,
String query,
String fragment)
authority - of the relative uri referencepath - the path of the reference or emptyfragment - used in reference or null
public UriReference(String scheme,
String authority,
String path,
String query,
String fragment)
throws IllegalArgumentException
null.
scheme - of the relative uri referenceauthority - of the relative uri referencepath - the path of the reference or emptyfragment - used in reference or null
IllegalArgumentException - if both scheme and authority are
not null
public UriReference(IUriReference reference,
String fragmentIdentifier)
| Method Detail |
|---|
public IUriReference appendPath(String path)
IUriReference
appendPath in interface IUriReferencepath - uri encoded path to be appended
public IUriReference setQuery(String query)
IUriReferenceUriQuery for manipulation of query strings.
setQuery in interface IUriReferencequery - the encoded query string to be set (may be null )
public boolean equals(Object other)
equals in class Objectpublic boolean equals(IUriReference other)
public boolean equals(UriReference other)
public int hashCode()
hashCode in class Objectpublic String toExternalForm()
IUriReference
toExternalForm in interface IUriReferencepublic String toString()
toString in class Objectpublic String getFragmentIdentifier()
getFragmentIdentifier in interface IUriReferencepublic String getScheme()
getScheme in interface IUriReferencenullpublic String getAuthority()
getAuthority in interface IUriReferencenullpublic String getPath()
getPath in interface IUriReferencepublic String getQuery()
getQuery in interface IUriReferencenullpublic IUri getUri()
getUri in interface IUriReferencenullpublic boolean isAbsolute()
isAbsolute in interface IUriReference
public IUriReference resolveWith(IUri base)
throws IllegalArgumentException
resolveWith in interface IUriReferencebase - uri to resolve this reference with
IllegalArgumentException| 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 | |||||||||