atg.rest.util
Class RepositoryURI

java.lang.Object
  extended by atg.rest.util.ParsedURI
      extended by atg.rest.util.RepositoryURI

public class RepositoryURI
extends ParsedURI

Class which represents a repository URI for REST requests.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
RepositoryURI(ComponentResolver pResolver, DynamoHttpServletRequest pRequest, java.lang.String pRequiredServletPrefix)
          Constructor
 
Method Summary
 java.lang.String getItemId()
          Returns the item id from the URI
 java.lang.String getItemType()
          The item type in the URI
protected  void parseURI(ComponentResolver pResolver, DynamoHttpServletRequest pRequest)
          Parses a uri into parts
 void setItemId(java.lang.String pItemId)
          Sets the item id property
 void setItemType(java.lang.String pItemType)
          Sets the item type property
 
Methods inherited from class atg.rest.util.ParsedURI
getResourceContainer, getResourceProperty, getURI, setResourceContainer, setResourceProperty, setURI
 
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

RepositoryURI

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

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

getItemType

public java.lang.String getItemType()
The item type in the URI

Returns:
the item type

setItemType

public void setItemType(java.lang.String pItemType)
Sets the item type property

Parameters:
pItemType - the itemType to set

getItemId

public java.lang.String getItemId()
Returns the item id from the URI

Returns:
the itemId

setItemId

public void setItemId(java.lang.String pItemId)
Sets the item id property

Parameters:
pItemId - the itemId to set

parseURI

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

Overrides:
parseURI in class ParsedURI
Parameters:
pResolver - the component resolver
pRequest - the servlet request