com.caucho.server.webapp
Class IncludeRequest

java.lang.Object
  extended by com.caucho.server.http.AbstractCauchoRequest
      extended by com.caucho.server.http.CauchoRequestWrapper
          extended by com.caucho.server.webapp.IncludeRequest
All Implemented Interfaces:
CauchoRequest, HttpServletRequest, ServletRequest

@Module
public class IncludeRequest
extends CauchoRequestWrapper


Nested Class Summary
 
Nested classes/interfaces inherited from class com.caucho.server.http.AbstractCauchoRequest
AbstractCauchoRequest.PartImpl
 
Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
IncludeRequest()
           
IncludeRequest(HttpServletRequest request, HttpServletResponse response, Invocation invocation)
           
 
Method Summary
protected  void finishRequest()
           
 java.lang.Object getAttribute(java.lang.String name)
          Returns an attribute value.
 java.util.Enumeration<java.lang.String> getAttributeNames()
          Enumerates all attribute names in the request.
 java.lang.String getContextPath()
          Returns the part of the URI corresponding to the application's prefix.
 DispatcherType getDispatcherType()
          Returns DispatcherType
 java.lang.String getHeader(java.lang.String name)
          Returns the first value for a request header.
 java.util.Enumeration<java.lang.String> getHeaderNames()
          Returns an enumeration of all headers sent by the client.
 java.util.Enumeration<java.lang.String> getHeaders(java.lang.String name)
          Returns all the values for a request header.
protected  Invocation getInvocation()
           
 java.lang.String getMethod()
          Returns the HTTP method, e.g.
 java.lang.String getPageContextPath()
           
 java.lang.String getPagePathInfo()
           
 java.lang.String getPageQueryString()
           
 java.lang.String getPageServletPath()
           
 java.lang.String getPageURI()
           
 java.lang.String getParameter(java.lang.String name)
          Returns the form primary value for the given name.
 java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
          Returns a map of the form.
 java.util.Enumeration<java.lang.String> getParameterNames()
          Returns an enumeration of the form names.
 java.lang.String[] getParameterValues(java.lang.String name)
          Returns the form's values for the given name.
 IncludeResponse getResponse()
           
 ServletContext getServletContext()
          Returns the servlet context for the request
 WebApp getWebApp()
           
 boolean isSyntheticCacheHeader()
           
protected  void parseGetQueryImpl(HashMapImpl<java.lang.String,java.lang.String[]> form)
           
protected  void parsePostQueryImpl(HashMapImpl<java.lang.String,java.lang.String[]> form)
           
 void setHeader(java.lang.String name, java.lang.String value)
           
 
Methods inherited from class com.caucho.server.http.CauchoRequestWrapper
getAbstractHttpRequest, getAsyncContext, getAuthType, getCharacterEncoding, getContentLength, getContentType, getCookie, getCookies, getDateHeader, getHasCookie, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMemorySession, getPart, getParts, getPathInfo, getPathTranslated, getProtocol, getQueryString, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequest, getRequestDepth, getRequestDispatcher, getRequestedSessionId, getRequestURI, getRequestURL, getScheme, getServerName, getServerPort, getServletPath, getServletResponse, getSessionId, getStream, getVaryCookies, hasRequest, isAsyncStarted, isAsyncSupported, isComet, isConnectionClosed, isDelegateMultipartEnabled, isDuplex, isLoginRequested, isMultipartEnabled, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isSessionIdFromCookie, isSuspend, isTop, isWrapperFor, isWrapperFor, killKeepalive, logout, removeAttribute, requestLogin, setAttribute, setCharacterEncoding, setHasCookie, setRequest, setResponse, setSessionId, setSyntheticCacheHeader, setVaryCookie, startAsync, startAsync, toString
 
Methods inherited from class com.caucho.server.http.AbstractCauchoRequest
addCloseOnExit, authenticate, getLoadedSession, getParameterImpl, getParameterMapImpl, getParameterNamesImpl, getParameterValuesImpl, getRealPath, getRunAs, getServer, getSession, getSession, getSessionCookie, getSessionGroup, getSessionManager, getSocketLink, getStream, getUserPrincipal, isUserInRole, login, login, mergeParameters, parseQueryImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncludeRequest

public IncludeRequest()

IncludeRequest

public IncludeRequest(HttpServletRequest request,
                      HttpServletResponse response,
                      Invocation invocation)
Method Detail

getInvocation

protected Invocation getInvocation()
Overrides:
getInvocation in class AbstractCauchoRequest

getResponse

public IncludeResponse getResponse()
Overrides:
getResponse in class CauchoRequestWrapper

getServletContext

public ServletContext getServletContext()
Description copied from interface: ServletRequest
Returns the servlet context for the request

Specified by:
getServletContext in interface ServletRequest
Overrides:
getServletContext in class CauchoRequestWrapper

getDispatcherType

public DispatcherType getDispatcherType()
Description copied from interface: ServletRequest
Returns DispatcherType

Specified by:
getDispatcherType in interface ServletRequest
Overrides:
getDispatcherType in class CauchoRequestWrapper
Returns:

getPageURI

public java.lang.String getPageURI()
Specified by:
getPageURI in interface CauchoRequest
Overrides:
getPageURI in class CauchoRequestWrapper

getContextPath

public java.lang.String getContextPath()
Description copied from interface: HttpServletRequest
Returns the part of the URI corresponding to the application's prefix. The first part of the URI selects applications (ServletContexts).

getContextPath() is /myapp for the uri /myapp/servlet/Hello,

Specified by:
getContextPath in interface HttpServletRequest
Overrides:
getContextPath in class CauchoRequestWrapper

getPageContextPath

public java.lang.String getPageContextPath()
Specified by:
getPageContextPath in interface CauchoRequest
Overrides:
getPageContextPath in class CauchoRequestWrapper

getPageServletPath

public java.lang.String getPageServletPath()
Specified by:
getPageServletPath in interface CauchoRequest
Overrides:
getPageServletPath in class CauchoRequestWrapper

getPagePathInfo

public java.lang.String getPagePathInfo()
Specified by:
getPagePathInfo in interface CauchoRequest
Overrides:
getPagePathInfo in class CauchoRequestWrapper

getPageQueryString

public java.lang.String getPageQueryString()
Specified by:
getPageQueryString in interface CauchoRequest
Overrides:
getPageQueryString in class CauchoRequestWrapper

getMethod

public java.lang.String getMethod()
Description copied from interface: HttpServletRequest
Returns the HTTP method, e.g. "GET" or "POST"

Equivalent to CGI's REQUEST_METHOD

Specified by:
getMethod in interface HttpServletRequest
Overrides:
getMethod in class CauchoRequestWrapper

getWebApp

public WebApp getWebApp()
Specified by:
getWebApp in interface CauchoRequest
Overrides:
getWebApp in class CauchoRequestWrapper

isSyntheticCacheHeader

public boolean isSyntheticCacheHeader()
Specified by:
isSyntheticCacheHeader in interface CauchoRequest
Overrides:
isSyntheticCacheHeader in class CauchoRequestWrapper

setHeader

public void setHeader(java.lang.String name,
                      java.lang.String value)
Specified by:
setHeader in interface CauchoRequest
Overrides:
setHeader in class CauchoRequestWrapper

getHeader

public java.lang.String getHeader(java.lang.String name)
Description copied from interface: HttpServletRequest
Returns the first value for a request header.

Corresponds to CGI's HTTP_*

 String userAgent = request.getHeader("User-Agent");
 

Specified by:
getHeader in interface HttpServletRequest
Overrides:
getHeader in class CauchoRequestWrapper
Parameters:
name - the header name
Returns:
the header value

getHeaders

public java.util.Enumeration<java.lang.String> getHeaders(java.lang.String name)
Description copied from interface: HttpServletRequest
Returns all the values for a request header. In some rare cases, like cookies, browsers may return multiple headers.

Specified by:
getHeaders in interface HttpServletRequest
Overrides:
getHeaders in class CauchoRequestWrapper
Parameters:
name - the header name
Returns:
an enumeration of the header values.

getHeaderNames

public java.util.Enumeration<java.lang.String> getHeaderNames()
Description copied from interface: HttpServletRequest
Returns an enumeration of all headers sent by the client.

Specified by:
getHeaderNames in interface HttpServletRequest
Overrides:
getHeaderNames in class CauchoRequestWrapper

getParameterNames

public java.util.Enumeration<java.lang.String> getParameterNames()
Returns an enumeration of the form names.

Specified by:
getParameterNames in interface ServletRequest
Overrides:
getParameterNames in class CauchoRequestWrapper

getParameterMap

public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
Returns a map of the form.

Specified by:
getParameterMap in interface ServletRequest
Overrides:
getParameterMap in class CauchoRequestWrapper

getParameterValues

public java.lang.String[] getParameterValues(java.lang.String name)
Returns the form's values for the given name.

Specified by:
getParameterValues in interface ServletRequest
Overrides:
getParameterValues in class CauchoRequestWrapper
Parameters:
name - key in the form
Returns:
value matching the key

getParameter

public java.lang.String getParameter(java.lang.String name)
Returns the form primary value for the given name.

Specified by:
getParameter in interface ServletRequest
Overrides:
getParameter in class CauchoRequestWrapper
Parameters:
name - the form parameter to return
Returns:
the form value or null if none matches.

parseGetQueryImpl

protected void parseGetQueryImpl(HashMapImpl<java.lang.String,java.lang.String[]> form)
Overrides:
parseGetQueryImpl in class AbstractCauchoRequest

parsePostQueryImpl

protected void parsePostQueryImpl(HashMapImpl<java.lang.String,java.lang.String[]> form)
Overrides:
parsePostQueryImpl in class AbstractCauchoRequest

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Description copied from interface: ServletRequest
Returns an attribute value.

Specified by:
getAttribute in interface ServletRequest
Overrides:
getAttribute in class CauchoRequestWrapper
Parameters:
name - the attribute name
Returns:
the attribute value

getAttributeNames

public java.util.Enumeration<java.lang.String> getAttributeNames()
Description copied from interface: ServletRequest
Enumerates all attribute names in the request.

Specified by:
getAttributeNames in interface ServletRequest
Overrides:
getAttributeNames in class CauchoRequestWrapper

finishRequest

protected void finishRequest()
                      throws java.io.IOException
Overrides:
finishRequest in class AbstractCauchoRequest
Throws:
java.io.IOException