SAP NetWeaver '04

com.sap.netweaver.bc.rf.common
Class UriReference

[contained in: com.sap.netweaver.bc.rf.par - bc.rf.common_api.jar]
java.lang.Object
  |
  +--com.sap.netweaver.bc.rf.common.UriReference
All Implemented Interfaces:
IUriReference

public class UriReference
extends java.lang.Object
implements IUriReference

A RFC2396 reference implementation.

Copyright (c) SAP AG 2001-2003


Constructor Summary
UriReference(IAbsoluteUri uri, java.lang.String fragmentIdentifier)
          Construct new absolute uri reference.
UriReference(IUriReference reference, java.lang.String fragmentIdentifier)
          Construct object of class UriReference.
UriReference(java.lang.String path, java.lang.String query, java.lang.String fragment)
          Construct new relative uri reference without authority and scheme.
UriReference(java.lang.String authority, java.lang.String path, java.lang.String query, java.lang.String fragment)
          Construct new relative uri reference without scheme.
UriReference(java.lang.String scheme, java.lang.String authority, java.lang.String path, java.lang.String query, java.lang.String fragment)
          Construct new relative uri reference with scheme.
 
Method Summary
 IUriReference appendPath(java.lang.String path)
          TBD: Description of the Method.
 boolean equals(IUriReference other)
           
 boolean equals(java.lang.Object other)
           
 boolean equals(UriReference other)
           
 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
 IAbsoluteUri getUri()
          Get the uri if the reference is absolute
 int hashCode()
          TBD: Description of the Method.
 boolean isAbsolute()
          Determine if the reference is absolute
 IUriReference resolveWith(IAbsoluteUri base)
          With base Uri, resolve this reference to an absolute reference.
 IUriReference setQuery(java.lang.String query)
          Set the query attribute of the UriReference object.
 java.lang.String toExternalForm()
          TBD: Description of the Method.
 java.lang.String toString()
          TBD: Description of the Method.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UriReference

public UriReference(IAbsoluteUri uri,
                    java.lang.String fragmentIdentifier)
Construct new absolute uri reference.
Parameters:
uri - the absolute uri
fragmentIdentifier - the fragment of the uri reference

UriReference

public UriReference(java.lang.String path,
                    java.lang.String query,
                    java.lang.String fragment)
Construct new relative uri reference without authority and scheme.
Parameters:
path - the path of the reference or empty
fragment - used in reference of null
query - TBD: Description of the incoming method parameter

UriReference

public UriReference(java.lang.String authority,
                    java.lang.String path,
                    java.lang.String query,
                    java.lang.String fragment)
Construct new relative uri reference without scheme.
Parameters:
authority - of the relative uri reference
path - the path of the reference or empty
fragment - used in reference of null
query - TBD: Description of the incoming method parameter

UriReference

public UriReference(java.lang.String scheme,
                    java.lang.String authority,
                    java.lang.String path,
                    java.lang.String query,
                    java.lang.String fragment)
             throws java.lang.IllegalArgumentException
Construct new relative uri reference with scheme. This constructor is used for a degenerate case as described in RFC 2396, page 32. The construction of relative uri references with scheme is discouraged. Note that either scheme or authority must be null.
Parameters:
scheme - of the relative uri reference
authority - of the relative uri reference
path - the path of the reference or empty
fragment - used in reference of null
query - TBD: Description of the incoming method parameter
Throws:
java.lang.IllegalArgumentException - Exception raised in failure situation
java.lang.ArgumentNotValidException - if both scheme and authority are not null

UriReference

public UriReference(IUriReference reference,
                    java.lang.String fragmentIdentifier)
Construct object of class UriReference.
Parameters:
reference - TBD: Description of the incoming method parameter
fragmentIdentifier - TBD: Description of the incoming method parameter
Method Detail

appendPath

public IUriReference appendPath(java.lang.String path)
TBD: Description of the Method.
Specified by:
appendPath in interface IUriReference
Parameters:
path - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value

setQuery

public IUriReference setQuery(java.lang.String query)
Set the query attribute of the UriReference object.
Specified by:
setQuery in interface IUriReference
Parameters:
query - The new query value
Returns:
TBD: Description of the outgoing return value

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(IUriReference other)

equals

public boolean equals(UriReference other)

hashCode

public int hashCode()
TBD: Description of the Method.
Overrides:
hashCode in class java.lang.Object
Returns:
TBD: Description of the outgoing return value

toExternalForm

public java.lang.String toExternalForm()
TBD: Description of the Method.
Specified by:
toExternalForm in interface IUriReference
Returns:
TBD: Description of the outgoing return value

toString

public java.lang.String toString()
TBD: Description of the Method.
Overrides:
toString in class java.lang.Object
Returns:
TBD: Description of the outgoing return value

getFragmentIdentifier

public java.lang.String getFragmentIdentifier()
Get the fragment identifier (without '#') of the uri
Specified by:
getFragmentIdentifier in interface IUriReference
Returns:
fragment identifier or emtpy String

getScheme

public java.lang.String getScheme()
Get the scheme of the reference
Specified by:
getScheme in interface IUriReference
Returns:
scheme of reference or null

getAuthority

public java.lang.String getAuthority()
Get the authority of the reference
Specified by:
getAuthority in interface IUriReference
Returns:
authority of reference or null

getPath

public java.lang.String getPath()
Get the path of the reference
Specified by:
getPath in interface IUriReference
Returns:
path of reference or empty string

getQuery

public java.lang.String getQuery()
Get the query of the reference
Specified by:
getQuery in interface IUriReference
Returns:
query of reference or null

getUri

public IAbsoluteUri getUri()
Get the uri if the reference is absolute
Specified by:
getUri in interface IUriReference
Returns:
uri of reference or null

isAbsolute

public boolean isAbsolute()
Determine if the reference is absolute
Specified by:
isAbsolute in interface IUriReference
Returns:
if reference is absolute

resolveWith

public IUriReference resolveWith(IAbsoluteUri base)
With base Uri, resolve this reference to an absolute reference. If this reference is already absolute, this is the identity operation.
Specified by:
resolveWith in interface IUriReference
Parameters:
base - uri to resolve this reference with
Returns:
absolute uri reference

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.