public class CookiePipelineServlet extends PipelineableServletImpl
The CookiePipelineServlet extracts any cookies found in the request's headers and puts them into an attribute named by DynamoHttpServletRequest.COOKIE_ATTRIBUTE_NAME. This attribute is a Dictionary that maps the cookie name to the cookie's value. If a cookie does not have a value, its value becomes "".
Each cookie's name is mapped to an array of Strings, because a single cookie might have multiple values. If a cookie has only one value, that value will be stored in an array of one value.
The DynamoHttpServletRequest interface presents several methods for getting cookie values, such as getCookieParameter and getCookieParameterNames. These methods will automatically read the cookie attribute and interpret the difference between a single String and an array of Strings. This pipeline servlet must be in the pipeline before the cookie methods are used on the DynamoHttpServletRequest.
| 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 |
|---|
CookiePipelineServlet()
Constructs a new CookiePipelineServlet
|
| Modifier and Type | Method and Description |
|---|---|
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Services a DynamoHttpServletRequest/Response pair
|
createAdminServlet, destroy, getAdminServlet, getNextServlet, getServletConfig, getServletInfo, init, isUsePathInfo, passRequest, passRequest, service, service, setNextServlet, setServletInfo, setUsePathInfogetAverageRequestHandlingTime, 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 CookiePipelineServlet()
public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws java.io.IOException, javax.servlet.ServletException
service in class PipelineableServletImpljavax.servlet.ServletException - if an error occurred while processing
the servlet requestjava.io.IOException - if an error occurred while reading or writing
the servlet request