public class HeadRestServlet extends RestPipelineServlet
RestPipelineServlet
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
BEAN_SERVLET_PATH, PARSED_URI, PATH_INFO, REPOSITORY_SERVLET_PATH, REST_CONTEXT_ROOT, SERVLET_PATH
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
HeadRestServlet()
Constructor
|
Modifier and Type | Method and Description |
---|---|
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() to parse important information out of the URI.
|
void |
setUriClassMap(java.util.Map<java.lang.String,java.lang.String> pUriClassMap)
Sets the map of uri string to class name
|
getMethod, getRequiredServletPrefix, getRestProcessor, getTransactionManager, isEnsureTransaction, isMatch, isTransactionMarkedAsRollback, postCommitTransaction, preCreateTransaction, setEnsureTransaction, setRequiredServletPrefix, setRestProcessor, setTransactionManager
createAdminServlet, destroy, getAdminServlet, getNextServlet, getServletConfig, getServletInfo, init, isUsePathInfo, passRequest, passRequest, service, service, setNextServlet, setServletInfo, setUsePathInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
addLogListener, doStopService, getAbsoluteName, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
protected void postCreateTransaction(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws RestException, java.io.IOException
postCreateTransaction
in class RestPipelineServlet
pRequest
- the servlet requestpResponse
- the servlet responseRestException
- if an error occurs processing the REST requestjava.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 responsejava.io.IOException
- if an input or output stream exception occursjavax.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 responsejava.io.IOException
- if an input or output stream exception occursjavax.servlet.ServletException
- if a general error occursRestException
- 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