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 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 nullpublic UriReference(IUriReference reference, String fragmentIdentifier)
public IUriReference appendPath(String path)
IUriReference
appendPath
in interface IUriReference
path
- uri encoded path to be appendedpublic IUriReference setQuery(String query)
IUriReference
UriQuery
for manipulation of query strings.setQuery
in interface IUriReference
query
- the encoded query string to be set (may be null
)public boolean equals(IUriReference other)
public boolean equals(UriReference other)
public String toExternalForm()
IUriReference
toExternalForm
in interface IUriReference
public String getFragmentIdentifier()
getFragmentIdentifier
in interface IUriReference
public String getScheme()
getScheme
in interface IUriReference
null
public String getAuthority()
getAuthority
in interface IUriReference
null
public String getPath()
getPath
in interface IUriReference
public String getQuery()
getQuery
in interface IUriReference
null
public IUri getUri()
getUri
in interface IUriReference
null
public boolean isAbsolute()
isAbsolute
in interface IUriReference
public IUriReference resolveWith(IUri base) throws IllegalArgumentException
resolveWith
in interface IUriReference
base
- 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 2018 SAP AG Complete Copyright Notice