com.sun.enterprise.web.pwc.connector.coyote
Class PwcCoyoteRequest

java.lang.Object
  extended by org.apache.catalina.connector.Request
      extended by com.sun.enterprise.web.pwc.connector.coyote.PwcCoyoteRequest
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest, HttpRequest, Request

public class PwcCoyoteRequest
extends Request

Customized version of the Tomcat 5 CoyoteRequest This is required for supporting Web Programmatic Login and setting the request encoding (charset).

Author:
Jeanfrancois Arcand, Jan Luehe

Field Summary
 
Fields inherited from class org.apache.catalina.connector.Request
attributes, authType, CACHED_POST_LEN, checkRestrictedResources, checkUnsuccessfulSessionFind, clientClosedConnection, connector, context, cookies, cookiesParsed, coyoteRequest, defaultContextMaskingFacade, defaultLocale, discardDisconnectEvent, dispatcherTypeAttr, facade, filterChain, formats, hostValve, info, inputBuffer, inputStream, localAddr, locales, localesParsed, localName, localPort, mappingData, parameterMap, postData, reader, remoteAddr, remoteHost, remotePort, requestDispatcherPath, requestedSessionCookie, requestedSessionCookiePath, requestedSessionId, requestedSessionURL, requestedSessionVersion, requestParametersParsed, response, secure, servletContext, session, sessionParsed, sm, socket, subject, URIConverter, uriParamsCC, userPrincipal, usingInputStream, usingReader, wrapper
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
PwcCoyoteRequest()
           
 
Method Summary
 void configureSessionCookie(javax.servlet.http.Cookie cookie)
           
 java.lang.String getCharacterEncoding()
          Return the character encoding for this Request.
protected  byte[] getPostBody()
          Gets the POST body of this request.
 java.io.BufferedReader getReader()
           
protected  javax.servlet.http.Cookie makeCookie(com.sun.grizzly.util.http.ServerCookie scookie)
           
 void recycle()
           
 void setContext(Context ctx)
           
 
Methods inherited from class org.apache.catalina.connector.Request
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, getContentType, getContext, getContextPath, getContextPath, getCookies, getCoyoteRequest, getDateHeader, getDecodedRequestURI, getDecodedRequestURI, getDispatcherType, getFilterChain, getHeader, getHeaderNames, getHeaders, getHost, 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, getUnsuccessfulSessionFind, getURIConverter, getUserPrincipal, getWrapper, incrementDispatchDepth, isAlpha, isAsyncStarted, isAsyncSupported, isMaxDispatchDepthReached, isRequestedSessionIdFromCookie, isRequestedSessionIdFromSecureCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isUserInRole, lockSession, login, login, logout, makeCookie, parseCookies, parseJReplica, parseLocales, parseLocalesHeader, parseRequestParameters, parseSessionCookiesId, parseSessionId, parseSessionVersion, readPostBody, removeAttribute, removeNote, 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, setURIConverter, setUserPrincipal, setWrapper, startAsync, startAsync, unlockSession, updatePaths
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PwcCoyoteRequest

public PwcCoyoteRequest()
Method Detail

setContext

public void setContext(Context ctx)
Specified by:
setContext in interface Request
Overrides:
setContext in class Request

getReader

public java.io.BufferedReader getReader()
                                 throws java.io.IOException
Specified by:
getReader in interface javax.servlet.ServletRequest
Overrides:
getReader in class Request
Throws:
java.io.IOException

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Return the character encoding for this Request. If there is no request charset specified in the request, determines and sets the request charset using the locale-charset-info, locale-charset-map, and parameter-encoding elements provided in the sun-web.xml.

Specified by:
getCharacterEncoding in interface javax.servlet.ServletRequest
Overrides:
getCharacterEncoding in class Request

configureSessionCookie

public void configureSessionCookie(javax.servlet.http.Cookie cookie)
Overrides:
configureSessionCookie in class Request

recycle

public void recycle()
Specified by:
recycle in interface Request
Overrides:
recycle in class Request

getPostBody

protected byte[] getPostBody()
                      throws java.io.IOException
Gets the POST body of this request.

Overrides:
getPostBody in class Request
Returns:
The POST body of this request
Throws:
java.io.IOException

makeCookie

protected javax.servlet.http.Cookie makeCookie(com.sun.grizzly.util.http.ServerCookie scookie)
Overrides:
makeCookie in class Request


Copyright © 2012 GlassFish Community. All Rights Reserved.