atg.rest.servlet
Class RestProxyServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by atg.rest.servlet.RestProxyServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class RestProxyServlet
extends javax.servlet.http.HttpServlet

This class represents the start of the REST servlet pipeline. Its purpose is to initialize the pipeline's URI prefix. Its serviceRESTRequest() method does not contain any logic for handling requests, but rather just checks to see that the pipeline is initialized. See RestPipelineServlet for more information.

See Also:
RestPipelineServlet, Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
RestProxyServlet()
          Constructor
 
Method Summary
 java.lang.String getProxiedServlet()
          Returns a reference to the proxied servlet
 void init()
          Gets the proxiedServlet property from the web.xml file and sets the proxiedServlet property
 void service(javax.servlet.ServletRequest pRequest, javax.servlet.ServletResponse pResponse)
          Forwards call to the service() method of the HeadRestServlet
 void setProxiedServlet(java.lang.String pProxiedServlet)
          Sets a reference to the proxied servlet
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
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

RestProxyServlet

public RestProxyServlet()
Constructor

Method Detail

getProxiedServlet

public java.lang.String getProxiedServlet()
Returns a reference to the proxied servlet

Returns:
the value of proxiedServlet

setProxiedServlet

public void setProxiedServlet(java.lang.String pProxiedServlet)
Sets a reference to the proxied servlet

Parameters:
pProxiedServlet - the proxiedServlet to set

init

public void init()
          throws javax.servlet.ServletException
Gets the proxiedServlet property from the web.xml file and sets the proxiedServlet property

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException - if the init-param is not set in the web.xml

service

public void service(javax.servlet.ServletRequest pRequest,
                    javax.servlet.ServletResponse pResponse)
             throws java.io.IOException,
                    javax.servlet.ServletException
Forwards call to the service() method of the HeadRestServlet

Specified by:
service in interface javax.servlet.Servlet
Overrides:
service in class javax.servlet.http.HttpServlet
Parameters:
pRequest - the servlet request
pResponse - the servlet response
Throws:
java.io.IOException - if an input or output stream exception occurs
javax.servlet.ServletException - if any other error occurs