org.exoplatform.services.rest
Class ResourceIdentifier

java.lang.Object
  extended by org.exoplatform.services.rest.ResourceIdentifier

public class ResourceIdentifier
extends Object

Created by The eXo Platform SAS .

Version:
$Id: $
Author:
Gennady Azarenkov

Constructor Summary
ResourceIdentifier(String relURI)
           
ResourceIdentifier(String baseURI, String relURI)
           
ResourceIdentifier(String host, String baseURI, String relURI)
           
 
Method Summary
 String getBaseURI()
           
 String getHost()
           
 Map<String,String> getParameters()
           
 String getURI()
           
 void initParameters(URIPattern pattern)
          Initialize the URI parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceIdentifier

public ResourceIdentifier(String host,
                          String baseURI,
                          String relURI)
Parameters:
host - the host name.
baseURI - the base URI.
relURI - the relative URI.

ResourceIdentifier

public ResourceIdentifier(String baseURI,
                          String relURI)
Parameters:
baseURI - the base URI.
relURI - the relative URI.

ResourceIdentifier

public ResourceIdentifier(String relURI)
Parameters:
relURI - the relative URI Relative URI used for identification ResourceContainer with can serve the request.
Method Detail

getHost

public String getHost()
Returns:
the host.

getURI

public String getURI()
Returns:
the relative URI.

getBaseURI

public String getBaseURI()
Returns:
the base URI.

initParameters

public void initParameters(URIPattern pattern)
Initialize the URI parameters.

Parameters:
pattern - the URIPattern.
See Also:
.

getParameters

public Map<String,String> getParameters()
Returns:
the key-value pairs of URI parameters.


Copyright © 2009 eXo Platform SAS. All Rights Reserved.