public class PipelineableServletImpl extends TimedOperationService implements PipelineableServlet, javax.servlet.Servlet, AdminableService
A PipelineableServletImpl is an implementation of a PipelineableServlet that also implements Servlet.
PipelineableServlet| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
PipelineableServletImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.servlet.Servlet |
createAdminServlet()
Creates and returns a new Servlet that will administer this
service.
|
void |
destroy()
Called when the servlet is to be destroyed
|
javax.servlet.Servlet |
getAdminServlet()
Returns the Servlet that will handle requests directed at this
service.
|
javax.servlet.Servlet |
getNextServlet()
Returns the next Servlet in the pipeline, null if this is the end
of the pipeline.
|
javax.servlet.ServletConfig |
getServletConfig()
Returns the configuration for this Servlet
|
java.lang.String |
getServletInfo()
Returns the information string for this servlet
|
void |
init(javax.servlet.ServletConfig pConfig)
Initializes this Servlet with the specified configuration
|
boolean |
isUsePathInfo()
Returns the kind of path getting
|
void |
passRequest(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Passes the specified request on to the next servlet in the pipeline
|
void |
passRequest(javax.servlet.ServletRequest pRequest,
javax.servlet.ServletResponse pResponse)
Passes the specified request on to the next servlet in the pipeline
|
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Services a DynamoHttpServletRequest/Response pair
|
void |
service(javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse)
Services an HttpServletRequest/Response pair
|
void |
service(javax.servlet.ServletRequest pRequest,
javax.servlet.ServletResponse pResponse)
If the request is an instanceof HttpServletRequest, then the service
method is passed onto the service handler for the HttpServletRequest
object.
|
void |
setNextServlet(javax.servlet.Servlet pNextServlet)
Sets the next Servlet in the pipeline, null if this is the end of
the pipeline.
|
void |
setServletInfo(java.lang.String pServletInfo)
Sets the information string for this servlet
|
void |
setUsePathInfo(boolean usePathInfo)
Sets the kind of path getting
|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatisticsaddLogListener, doStartService, 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, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic void setNextServlet(javax.servlet.Servlet pNextServlet)
setNextServlet in interface PipelineableServletpublic javax.servlet.Servlet getNextServlet()
getNextServlet in interface PipelineableServletpublic boolean isUsePathInfo()
public void setUsePathInfo(boolean usePathInfo)
public void passRequest(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
javax.servlet.ServletException - if an error occurred while processing
the servlet requestjava.io.IOException - if an error occurred while reading or writing
the servlet requestpublic void passRequest(javax.servlet.ServletRequest pRequest,
javax.servlet.ServletResponse pResponse)
throws java.io.IOException,
javax.servlet.ServletException
passRequest in interface PipelineableServletjavax.servlet.ServletException - if an error occurred while processing
the servlet requestjava.io.IOException - if an error occurred while reading or writing
the servlet requestpublic void init(javax.servlet.ServletConfig pConfig)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletjavax.servlet.ServletException - if there was a problem initializing the
Servletpublic javax.servlet.ServletConfig getServletConfig()
getServletConfig in interface javax.servlet.Servletpublic java.lang.String getServletInfo()
getServletInfo in interface javax.servlet.Servletpublic void setServletInfo(java.lang.String pServletInfo)
public void destroy()
destroy in interface javax.servlet.Servletpublic void service(javax.servlet.ServletRequest pRequest,
javax.servlet.ServletResponse pResponse)
throws java.io.IOException,
javax.servlet.ServletException
service in interface javax.servlet.Servletjavax.servlet.ServletException - if an error occurred while processing
the servlet requestjava.io.IOException - if an error occurred while reading or writing
the servlet requestpublic void service(javax.servlet.http.HttpServletRequest pRequest,
javax.servlet.http.HttpServletResponse pResponse)
throws java.io.IOException,
javax.servlet.ServletException
javax.servlet.ServletException - if an error occurred while processing
the servlet requestjava.io.IOException - if an error occurred while reading or writing
the servlet requestpublic void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
javax.servlet.ServletException - if an error occurred while processing
the servlet requestjava.io.IOException - if an error occurred while reading or writing
the servlet requestpublic javax.servlet.Servlet getAdminServlet()
getAdminServlet in interface AdminableServicegetAdminServlet in class GenericServicecreateAdminServlet()protected javax.servlet.Servlet createAdminServlet()
createAdminServlet in class GenericService