SAP NetWeaver '04

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

[contained in: com.sap.netweaver.bc.rf.par - bc.rf.common_api.jar]
java.lang.Object
  |
  +--com.sap.netweaver.bc.rf.common.GenericUri
All Implemented Interfaces:
IAbsoluteUri
Direct Known Subclasses:
DataUri

public class GenericUri
extends java.lang.Object
implements IAbsoluteUri

A RFC2396 IUri implementation.

     Uri ::= scheme ':' opaque_part
 

Copyright (c) SAP AG 2001-2003


Constructor Summary
GenericUri(java.lang.String scheme, java.lang.String remainder)
           
 
Method Summary
 boolean equals(IAbsoluteUri other)
           
 boolean equals(java.lang.Object other)
           
 java.lang.String getRemainder()
          Get the remainder of this Uri (opaque part after scheme without ':').
 java.lang.String getScheme()
          Get the scheme of this Uri (without ':').
 int hashCode()
           
protected  IAbsoluteUri newInstance(java.lang.String remainder)
          Construct a new IUri with the scheme of this and the given remainder. used when generic uri resolves references.
 IAbsoluteUri resolve(IUriReference ref)
          Resolve the uri reference in the context of this Uri.
 java.lang.String toExternalForm()
          Returns a string representation according to RFC 2396 of this uri.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericUri

public GenericUri(java.lang.String scheme,
                  java.lang.String remainder)
           throws java.lang.IllegalArgumentException
Method Detail

getScheme

public java.lang.String getScheme()
Get the scheme of this Uri (without ':').
Specified by:
getScheme in interface IAbsoluteUri
Returns:
scheme of this Uri

getRemainder

public java.lang.String getRemainder()
Get the remainder of this Uri (opaque part after scheme without ':').
Specified by:
getRemainder in interface IAbsoluteUri
Returns:
remainder of this Uri

resolve

public IAbsoluteUri resolve(IUriReference ref)
                     throws java.lang.IllegalArgumentException
Resolve the uri reference in the context of this Uri.
Specified by:
resolve in interface IAbsoluteUri
Parameters:
ref - reference to resolve
Returns:
resolved reference as absolute uri without fragment identifier
Throws:
java.lang.IllegalArgumentException - Exception raised in failure situation

equals

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

equals

public boolean equals(IAbsoluteUri other)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toExternalForm

public java.lang.String toExternalForm()
Description copied from interface: IAbsoluteUri
Returns a string representation according to RFC 2396 of this uri.
Specified by:
toExternalForm in interface IAbsoluteUri
Following copied from interface: com.sap.netweaver.bc.rf.common.IAbsoluteUri
Returns:
string in URI format

newInstance

protected IAbsoluteUri newInstance(java.lang.String remainder)
                            throws java.lang.IllegalArgumentException
Construct a new IUri with the scheme of this and the given remainder. used when generic uri resolves references. This method should be overridden by subclasses to construct their own class.
Parameters:
remainder - new opaque part of uri
Returns:
new IUri instance
Throws:
java.lang.IllegalArgumentException - Exception raised in failure situation
java.lang.ArgumentNotValidException - when remainder is not legal

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.