|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A RFC2396 URI reference interface.
urireference ::= refpart fragment refpart ::= uri | relativeref fragment ::= '#' uri-characters | empty relativeref ::= hierarchical_part | opaque_part hierarchical_part ::= pathsegment query | [ netpath ] abspath query netpath ::= '//' authority
The opaque part is not directly mapped to this interface, but is the composition of path + query. This is due to the fact that at construction time of a relatice uri reference, it is not clear if the reference is part of an opaque or hierarchical uri scheme. Base uri classes, not hierarchical, which have to resolve references, have to concatenate path and query to get the opaque part of the reference.
There are degenrate cases of relative uri reference with a scheme, but without authority component. See RFC 2396, page 32 as an example. The use is discouraged. Copyright (c) SAP AG 2001-2002
| Method Summary | |
IUriReference |
appendPath(java.lang.String path)
Create a new uri reference by appending the given path to any existing path in the uri reference. |
java.lang.String |
getAuthority()
Get the authority of the reference |
java.lang.String |
getFragmentIdentifier()
Get the fragment identifier (without '#') of the uri |
java.lang.String |
getPath()
Get the path of the reference |
java.lang.String |
getQuery()
Get the query of the reference |
java.lang.String |
getScheme()
Get the scheme of the reference |
IUri |
getUri()
Get the uri of the reference if absolute |
boolean |
isAbsolute()
Determine if the reference is absolute |
IUriReference |
resolveWith(IUri base)
With base Uri, resolve this reference to an absolute reference. |
IUriReference |
setQuery(java.lang.String query)
Gets a new URI reference resulting from setting the query of this URI reference to the given query. |
java.lang.String |
toExternalForm()
Returns a string representation according to RFC 2396 of this uri reference. |
| Method Detail |
public IUriReference appendPath(java.lang.String path)
throws java.lang.UnsupportedOperationException
path - uri encoded path to be appendedjava.lang.UnsupportedOperationException - Exception raised in failure
situationpublic IUriReference setQuery(java.lang.String query)
UriQuery for manipulation of query strings.query - the encoded query string to be set (may be null )public java.lang.String getFragmentIdentifier()
public java.lang.String getScheme()
public java.lang.String getAuthority()
public java.lang.String getPath()
public java.lang.String getQuery()
public IUri getUri()
public boolean isAbsolute()
public IUriReference resolveWith(IUri base)
base - uri to resolve reference withpublic java.lang.String toExternalForm()
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||