atg.rest.util
Class ParsedURI

java.lang.Object
  extended by atg.rest.util.ParsedURI
Direct Known Subclasses:
BeanURI, RepositoryURI

public class ParsedURI
extends java.lang.Object

Help class to assist in uri parsing for REST requests.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
ParsedURI(ComponentResolver pResolver, DynamoHttpServletRequest pRequest, java.lang.String pRequiredServletPrefix)
          Constructor
 
Method Summary
 java.lang.String getResourceContainer()
          Returns the portion of the URI which is the resource container
 java.lang.String[] getResourceProperty()
          Returns an array of resource properties and subproperties
 java.lang.String getURI()
          Returns the URI string
protected  void parseURI(ComponentResolver pResolver, DynamoHttpServletRequest pRequest)
          Parses a uri into parts.
 void setResourceContainer(java.lang.String pResoureContainer)
          Sets the resource container property
 void setResourceProperty(java.lang.String[] pItemProperty)
          Sets the array of item properties from the URI
 void setURI(java.lang.String pURI)
          Sets the URI string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

ParsedURI

public ParsedURI(ComponentResolver pResolver,
                 DynamoHttpServletRequest pRequest,
                 java.lang.String pRequiredServletPrefix)
Constructor

Parameters:
the - component resolver
pRequest - the servlet request
pResponse - the servlet response
Method Detail

getURI

public java.lang.String getURI()
Returns the URI string

Returns:
the uri string

setURI

public void setURI(java.lang.String pURI)
Sets the URI string

Parameters:
pURI - the uri string to set

getResourceContainer

public java.lang.String getResourceContainer()
Returns the portion of the URI which is the resource container

Returns:
the portion of the uri which is the resource container

setResourceContainer

public void setResourceContainer(java.lang.String pResoureContainer)
Sets the resource container property

Parameters:
pResoureContainer - the resource container string to set

getResourceProperty

public java.lang.String[] getResourceProperty()
Returns an array of resource properties and subproperties

Returns:
the itemProperty

setResourceProperty

public void setResourceProperty(java.lang.String[] pItemProperty)
Sets the array of item properties from the URI

Parameters:
pItemProperty - the itemProperty to set

parseURI

protected void parseURI(ComponentResolver pResolver,
                        DynamoHttpServletRequest pRequest)
Parses a uri into parts.

Parameters:
pResolver - the component resolver used to find components
pRequest - the servlet request