public class UriReference extends Object implements IUriReference
Copyright (c) SAP AG 2001-2005
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
public UriReference(IUri uri, String fragmentIdentifier)
uri - the absolute urifragmentIdentifier - the fragment of the uri referencepublic UriReference(String path, String query, String fragment)
path - the path of the reference or emptyfragment - used in reference or nullpublic 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 nullpublic 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 nullIllegalArgumentException - if both scheme and authority are
not nullpublic UriReference(IUriReference reference, String fragmentIdentifier)
public IUriReference appendPath(String path)
IUriReferenceappendPath in interface IUriReferencepath - uri encoded path to be appendedpublic 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(IUriReference other)
public boolean equals(UriReference other)
public String toExternalForm()
IUriReferencetoExternalForm in interface IUriReferencepublic 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 IUriReferencepublic IUriReference resolveWith(IUri base) throws IllegalArgumentException
resolveWith in interface IUriReferencebase - uri to resolve this reference withIllegalArgumentException| 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
|
Copyright 2021 SAP SE Complete Copyright Notice