SAP NetWeaver '04

com.sapportals.wcm.util.uri
Class GenericUri

[contained in: com.sap.netweaver.bc.util.par - bc.util.public_api.jar]
java.lang.Object
  |
  +--com.sapportals.wcm.util.uri.GenericUri
All Implemented Interfaces:
IUri
Direct Known Subclasses:
DataUri

public class GenericUri
extends java.lang.Object
implements IUri

A RFC2396 IUri implementation.

     Uri ::= scheme ':' opaque_part
 

Copyright (c) SAP AG 2001-2002


Constructor Summary
GenericUri(java.lang.String scheme, java.lang.String remainder)
           
 
Method Summary
 boolean equals(IUri 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  IUri newInstance(java.lang.String remainder)
          Construct a new IUri with the scheme of this and the given remainder. used when generic uri resolves references.
 IUri 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 IUri
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 IUri
Returns:
remainder of this Uri

resolve

public IUri resolve(IUriReference ref)
             throws java.lang.IllegalArgumentException
Resolve the uri reference in the context of this Uri.
Specified by:
resolve in interface IUri
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(IUri 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: IUri
Returns a string representation according to RFC 2396 of this uri.
Specified by:
toExternalForm in interface IUri
Following copied from interface: com.sapportals.wcm.util.uri.IUri
Returns:
string in uri format

newInstance

protected IUri 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.IllegalArgumentException - 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.