public class PwcCoyoteRequest extends Request
attributes, authType, CACHED_POST_LEN, checkRestrictedResources, checkUnsuccessfulSessionFind, connector, context, cookies, cookiesParsed, coyoteRequest, defaultContextMaskingFacade, defaultLocale, discardDisconnectEvent, dispatcherTypeAttr, facade, filterChain, formats, hostValve, info, inputBuffer, inputStream, localAddr, locales, localesParsed, localName, localPort, mappingData, parameterMap, parametersProcessed, postData, reader, remoteAddr, remoteHost, remotePort, requestDispatcherPath, requestedSessionCookie, requestedSessionCookiePath, requestedSessionId, requestedSessionURL, requestedSessionVersion, response, secure, servletContext, session, sessionParsed, socket, subject, URIConverter, uriParamsCC, userPrincipal, usingInputStream, usingReader, wrapper
Constructor and Description |
---|
PwcCoyoteRequest() |
Modifier and Type | Method and Description |
---|---|
void |
configureSessionCookie(javax.servlet.http.Cookie cookie)
Configures the given JSESSIONID cookie.
|
String |
getCharacterEncoding()
Return the character encoding for this Request.
|
protected byte[] |
getPostBody()
Gets the POST body of this request.
|
BufferedReader |
getReader()
Read the Reader wrapping the input stream for this Request.
|
protected javax.servlet.http.Cookie |
makeCookie(org.glassfish.grizzly.http.Cookie scookie) |
void |
recycle()
Release all object references, and initialize instance variables, in
preparation for reuse of this object.
|
void |
setContext(Context ctx)
Set the Context within which this Request is being processed.
|
addCookie, addHeader, addLocale, addParameter, authenticate, changeSessionId, clearCookies, clearHeaders, clearLocales, clearParameters, convertURI, createInputStream, decrementDispatchDepth, disableAsyncSupport, doGetSession, finishRequest, generateSessionId, getAsyncContext, getAttribute, getAttributeNames, getAuthorization, getAuthType, getCheckRestrictedResources, getConnector, getContentLength, getContentLengthLong, getContentType, getContext, getContextPath, getContextPath, getCookies, getCoyoteRequest, getDateHeader, getDecodedRequestURI, getDecodedRequestURI, getDispatcherType, getFilterChain, getHeader, getHeaderNames, getHeaders, getHost, getHttpServletMapping, getHttpUpgradeHandler, getInfo, getInputStream, getIntHeader, getJrouteId, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMappingData, getMaxDispatchDepth, getMethod, getNote, getNoteNames, getParameter, getParameterMap, getParameterNames, getParameterValues, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getQueryString, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequest, getRequest, getRequestDispatcher, getRequestedSessionId, getRequestPathMB, getRequestURI, getRequestURI, getRequestURL, getRequestURL, getResponse, getScheme, getServerName, getServerPort, getServletContext, getServletPath, getSession, getSession, getSessionInternal, getSessionInternal, getSocket, getStream, getTrailerFields, getUnsuccessfulSessionFind, getURIConverter, getUserPrincipal, getWebConnection, getWrapper, incrementDispatchDepth, initialiseHttpUpgradeHandler, isAlpha, isAsyncStarted, isAsyncSupported, isMaxDispatchDepthReached, isRequestedSessionIdFromCookie, isRequestedSessionIdFromSecureCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isTrailerFieldsReady, isUpgrade, isUserInRole, lockSession, login, login, logout, makeCookie, newPushBuilder, obtainSessionId, parseCookies, parseJReplica, parseSessionCookiesId, parseSessionId, parseSessionVersion, readPostBody, removeAttribute, removeNote, replayPayload, setAttribute, setAuthType, setCharacterEncoding, setCheckRestrictedResources, setConnector, setContentLength, setContentType, setCookies, setCoyoteRequest, setDefaultContext, setEnforceScope, setFilterChain, setHost, setMappingData, setMaxDispatchDepth, setMethod, setNote, setPathInfo, setProtocol, setQueryString, setRemoteAddr, setRemoteHost, setRequestedSessionCookie, setRequestedSessionCookiePath, setRequestedSessionId, setRequestedSessionIdFromSecureCookie, setRequestedSessionURL, setRequestURI, setResponse, setSecure, setServerName, setServerPort, setServletPath, setSession, setSocket, setStream, setUnsuccessfulSessionFind, setUpgrade, setURIConverter, setUserPrincipal, setWebConnection, setWrapper, startAsync, startAsync, unlockSession, updatePaths, upgrade
public void setContext(Context ctx)
Request
getContextPath()
,
and thus enables parsing of the request URI.setContext
in interface Request
setContext
in class Request
ctx
- The newly associated Contextpublic BufferedReader getReader() throws IOException
Request
BufferedReader
around the
servlet input stream returned by createInputStream()
.getReader
in interface javax.servlet.ServletRequest
getReader
in class Request
IOException
- if an input/output error occurspublic String getCharacterEncoding()
getCharacterEncoding
in interface javax.servlet.ServletRequest
getCharacterEncoding
in class Request
public void configureSessionCookie(javax.servlet.http.Cookie cookie)
Request
configureSessionCookie
in class Request
cookie
- The JSESSIONID cookie to be configuredpublic void recycle()
Request
protected byte[] getPostBody() throws IOException
getPostBody
in class Request
IOException
protected javax.servlet.http.Cookie makeCookie(org.glassfish.grizzly.http.Cookie scookie)
makeCookie
in class Request
Copyright © 2021. All rights reserved.