|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.nucleus.TimedOperationService atg.servlet.pipeline.PipelineableServletImpl atg.rest.servlet.RestPipelineServlet atg.rest.servlet.HeadRestServlet
public class HeadRestServlet
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.
RestPipelineServlet
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.rest.servlet.RestPipelineServlet |
---|
BEAN_SERVLET_PATH, PARSED_URI, PATH_INFO, REPOSITORY_SERVLET_PATH, REST_CONTEXT_ROOT, SERVLET_PATH |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
HeadRestServlet()
Constructor |
Method Summary | |
---|---|
void |
doStartService()
This is called after a Service has been created, placed into the naming hierarchy, and initialized with its configured property values. |
java.util.Map<java.lang.String,java.lang.String> |
getUriClassMap()
Get the map of uri string to class name. |
protected void |
postCreateTransaction(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method is called after the transaction is created. |
protected void |
preCommitTransaction(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This method is called before the transaction is committed. |
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Override the service() method and call serviceRESTRequest(). |
void |
serviceRESTRequest(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Override serviceRESTRequest() so that this servlet does not do anything other than print a line of debug if loggingDebug is true. |
void |
setUriClassMap(java.util.Map<java.lang.String,java.lang.String> pUriClassMap)
Sets the map of uri string to class name |
Methods inherited from class atg.rest.servlet.RestPipelineServlet |
---|
getMethod, getRequiredServletPrefix, getRestProcessor, getTransactionManager, isEnsureTransaction, isMatch, isTransactionMarkedAsRollback, postCommitTransaction, preCreateTransaction, setEnsureTransaction, setRequiredServletPrefix, setRestProcessor, setTransactionManager |
Methods inherited from class atg.servlet.pipeline.PipelineableServletImpl |
---|
createAdminServlet, destroy, getAdminServlet, getNextServlet, getServletConfig, getServletInfo, init, isUsePathInfo, passRequest, passRequest, service, service, setNextServlet, setServletInfo, setUsePathInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public HeadRestServlet()
Method Detail |
---|
protected void postCreateTransaction(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws RestException, java.io.IOException
postCreateTransaction
in class RestPipelineServlet
pRequest
- the servlet requestpResponse
- the servlet response
RestException
- if an error occurs processing the REST request
java.io.IOException
- if an error occurs writing to the output streamprotected void preCommitTransaction(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
preCommitTransaction
in class RestPipelineServlet
pRequest
- the servlet requestpResponse
- the servlet responsepublic void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
service
in class RestPipelineServlet
pRequest
- the servlet requestpResponse
- the servlet response
java.io.IOException
- if an input or output stream exception occurs
javax.servlet.ServletException
- if any other error occursserviceRESTRequest(DynamoHttpServletRequest, DynamoHttpServletResponse)
public void serviceRESTRequest(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException, RestException
serviceRESTRequest
in class RestPipelineServlet
pRequest
- the servlet requestpResponse
- the servlet response
java.io.IOException
- if an input or output stream exception occurs
javax.servlet.ServletException
- if a general error occurs
RestException
- if an error occurs processing the REST requestRestPipelineServlet.serviceRESTRequest(DynamoHttpServletRequest,DynamoHttpServletResponse)
public void doStartService() throws ServiceException
GenericService
doStartService
in class RestPipelineServlet
ServiceException
- if the Service had a problem starting uppublic java.util.Map<java.lang.String,java.lang.String> getUriClassMap()
public void setUriClassMap(java.util.Map<java.lang.String,java.lang.String> pUriClassMap)
pUriClassMap
- the uriClassMap to set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |