public class ForwardRequest extends CauchoDispatchRequest
AbstractCauchoRequest.PartImpl
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
ForwardRequest() |
ForwardRequest(HttpServletRequest request,
HttpServletResponse response,
Invocation invocation) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
calculateQueryString() |
java.lang.Object |
getAttribute(java.lang.String name)
Returns an attribute value.
|
java.lang.String |
getContextPath()
Returns the URL for the request
|
DispatcherType |
getDispatcherType()
Returns DispatcherType
|
protected Invocation |
getInvocation() |
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.
|
java.lang.String |
getPathInfo()
Returns the URI part after the selected servlet and null if there
is no suffix.
|
java.lang.String |
getQueryString()
Returns the real path of pathInfo.
|
java.lang.String |
getRequestURI()
Returns the entire request URI
|
com.caucho.server.webapp.ForwardResponse |
getResponse() |
ServletContext |
getServletContext()
Returns the servlet context for the request
|
java.lang.String |
getServletName() |
java.lang.String |
getServletPath()
Returns the URI part corresponding to the selected servlet.
|
WebApp |
getWebApp() |
boolean |
isAsyncSupported()
Returns true if the request supports async
|
protected void |
parsePostQueryImpl(HashMapImpl<java.lang.String,java.lang.String[]> form) |
AsyncContext |
startAsync()
Starts an async/comet mode
|
protected void |
startRequest()
Starts the request
|
HttpServletRequest |
unwrapRequest() |
getAbstractHttpRequest, getAsyncContext, getAttributeNames, getAuthType, getCauchoRequest, getCharacterEncoding, getContentLength, getContentType, getCookie, getCookies, getDateHeader, getHasCookie, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMemorySession, getMethod, getProtocol, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequest, getRequestDepth, getRequestedSessionId, getScheme, getServerName, getServerPort, getServletResponse, getSessionId, getStream, getVaryCookies, hasRequest, isAsyncStarted, isComet, isConnectionClosed, isDelegateMultipartEnabled, isDuplex, isLoginRequested, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isSecure, isSessionIdFromCookie, isSuspend, isSyntheticCacheHeader, isTop, isWrapperFor, isWrapperFor, killKeepalive, logout, removeAttribute, requestLogin, setAttribute, setCharacterEncoding, setHasCookie, setHeader, setRequest, setResponse, setSessionId, setSyntheticCacheHeader, setVaryCookie, startAsync, toString
addCloseOnExit, authenticate, finishRequest, getLoadedSession, getParameterImpl, getParameterMapImpl, getParameterNamesImpl, getParameterValuesImpl, getPart, getParts, getPathTranslated, getRealPath, getRequestDispatcher, getRequestURL, getRunAs, getServer, getSession, getSession, getSessionCookie, getSessionGroup, getSessionManager, getSocketLink, getStream, getUserPrincipal, isMultipartEnabled, isRequestedSessionIdValid, isUserInRole, login, login, mergeParameters, parseGetQueryImpl, parseQueryImpl
public ForwardRequest()
public ForwardRequest(HttpServletRequest request, HttpServletResponse response, Invocation invocation)
protected Invocation getInvocation()
getInvocation
in class AbstractCauchoRequest
protected void startRequest()
startRequest
in class AbstractCauchoRequest
public com.caucho.server.webapp.ForwardResponse getResponse()
getResponse
in class CauchoDispatchRequest
public ServletContext getServletContext()
ServletRequest
getServletContext
in interface ServletRequest
getServletContext
in class CauchoDispatchRequest
public DispatcherType getDispatcherType()
ServletRequest
getDispatcherType
in interface ServletRequest
getDispatcherType
in class CauchoDispatchRequest
public java.lang.String getRequestURI()
HttpServletRequest
getRequestURI
in interface HttpServletRequest
getRequestURI
in class CauchoDispatchRequest
public java.lang.String getContextPath()
CauchoDispatchRequest
getContextPath
in interface HttpServletRequest
getContextPath
in class CauchoDispatchRequest
public java.lang.String getServletPath()
HttpServletRequest
SCRIPT_NAME
getServletPath()
is /servlet/Hello for the uri
/myapp/servlet/Hello/foo.
getServletPath()
is /dir/hello.jsp
for the uri /myapp/dir/hello.jsp/foo,getServletPath
in interface HttpServletRequest
getServletPath
in class CauchoDispatchRequest
public java.lang.String getPathInfo()
HttpServletRequest
PATH_INFO
getPathInfo()
is /foo for
the uri /myapp/servlet/Hello/foo.
getPathInfo()
is /hello.jsp for for the uri
/myapp/dir/hello.jsp/foo.
getPathInfo
in interface HttpServletRequest
getPathInfo
in class CauchoDispatchRequest
public java.lang.String getQueryString()
CauchoDispatchRequest
getQueryString
in interface HttpServletRequest
getQueryString
in class CauchoDispatchRequest
protected java.lang.String calculateQueryString()
public java.lang.String getPageURI()
getPageURI
in interface CauchoRequest
getPageURI
in class CauchoDispatchRequest
public java.lang.String getPageContextPath()
getPageContextPath
in interface CauchoRequest
getPageContextPath
in class CauchoDispatchRequest
public java.lang.String getPageServletPath()
getPageServletPath
in interface CauchoRequest
getPageServletPath
in class CauchoDispatchRequest
public java.lang.String getPagePathInfo()
getPagePathInfo
in interface CauchoRequest
getPagePathInfo
in class CauchoDispatchRequest
public java.lang.String getPageQueryString()
getPageQueryString
in interface CauchoRequest
getPageQueryString
in class CauchoDispatchRequest
public WebApp getWebApp()
getWebApp
in interface CauchoRequest
getWebApp
in class CauchoDispatchRequest
public boolean isAsyncSupported()
ServletRequest
isAsyncSupported
in interface ServletRequest
isAsyncSupported
in class CauchoDispatchRequest
public AsyncContext startAsync() throws java.lang.IllegalStateException
ServletRequest
startAsync
in interface ServletRequest
startAsync
in class CauchoDispatchRequest
java.lang.IllegalStateException
public java.lang.String getServletName()
public java.lang.Object getAttribute(java.lang.String name)
ServletRequest
getAttribute
in interface ServletRequest
getAttribute
in class CauchoDispatchRequest
name
- the attribute namepublic HttpServletRequest unwrapRequest()
public java.util.Enumeration<java.lang.String> getParameterNames()
getParameterNames
in interface ServletRequest
getParameterNames
in class AbstractCauchoRequest
public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
getParameterMap
in interface ServletRequest
getParameterMap
in class AbstractCauchoRequest
public java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues
in interface ServletRequest
getParameterValues
in class AbstractCauchoRequest
name
- key in the formpublic java.lang.String getParameter(java.lang.String name)
getParameter
in interface ServletRequest
getParameter
in class AbstractCauchoRequest
name
- the form parameter to returnprotected void parsePostQueryImpl(HashMapImpl<java.lang.String,java.lang.String[]> form)
parsePostQueryImpl
in class AbstractCauchoRequest