public class ForwardRequest extends CauchoDispatchRequest
AbstractCauchoRequest.PartImplBASIC_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, toStringaddCloseOnExit, 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, parseQueryImplpublic ForwardRequest()
public ForwardRequest(HttpServletRequest request, HttpServletResponse response, Invocation invocation)
protected Invocation getInvocation()
getInvocation in class AbstractCauchoRequestprotected void startRequest()
startRequest in class AbstractCauchoRequestpublic com.caucho.server.webapp.ForwardResponse getResponse()
getResponse in class CauchoDispatchRequestpublic ServletContext getServletContext()
ServletRequestgetServletContext in interface ServletRequestgetServletContext in class CauchoDispatchRequestpublic DispatcherType getDispatcherType()
ServletRequestgetDispatcherType in interface ServletRequestgetDispatcherType in class CauchoDispatchRequestpublic java.lang.String getRequestURI()
HttpServletRequestgetRequestURI in interface HttpServletRequestgetRequestURI in class CauchoDispatchRequestpublic java.lang.String getContextPath()
CauchoDispatchRequestgetContextPath in interface HttpServletRequestgetContextPath in class CauchoDispatchRequestpublic java.lang.String getServletPath()
HttpServletRequestSCRIPT_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 HttpServletRequestgetServletPath in class CauchoDispatchRequestpublic java.lang.String getPathInfo()
HttpServletRequestPATH_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 HttpServletRequestgetPathInfo in class CauchoDispatchRequestpublic java.lang.String getQueryString()
CauchoDispatchRequestgetQueryString in interface HttpServletRequestgetQueryString in class CauchoDispatchRequestprotected java.lang.String calculateQueryString()
public java.lang.String getPageURI()
getPageURI in interface CauchoRequestgetPageURI in class CauchoDispatchRequestpublic java.lang.String getPageContextPath()
getPageContextPath in interface CauchoRequestgetPageContextPath in class CauchoDispatchRequestpublic java.lang.String getPageServletPath()
getPageServletPath in interface CauchoRequestgetPageServletPath in class CauchoDispatchRequestpublic java.lang.String getPagePathInfo()
getPagePathInfo in interface CauchoRequestgetPagePathInfo in class CauchoDispatchRequestpublic java.lang.String getPageQueryString()
getPageQueryString in interface CauchoRequestgetPageQueryString in class CauchoDispatchRequestpublic WebApp getWebApp()
getWebApp in interface CauchoRequestgetWebApp in class CauchoDispatchRequestpublic boolean isAsyncSupported()
ServletRequestisAsyncSupported in interface ServletRequestisAsyncSupported in class CauchoDispatchRequestpublic AsyncContext startAsync() throws java.lang.IllegalStateException
ServletRequeststartAsync in interface ServletRequeststartAsync in class CauchoDispatchRequestjava.lang.IllegalStateExceptionpublic java.lang.String getServletName()
public java.lang.Object getAttribute(java.lang.String name)
ServletRequestgetAttribute in interface ServletRequestgetAttribute in class CauchoDispatchRequestname - the attribute namepublic HttpServletRequest unwrapRequest()
public java.util.Enumeration<java.lang.String> getParameterNames()
getParameterNames in interface ServletRequestgetParameterNames in class AbstractCauchoRequestpublic java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
getParameterMap in interface ServletRequestgetParameterMap in class AbstractCauchoRequestpublic java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues in interface ServletRequestgetParameterValues in class AbstractCauchoRequestname - key in the formpublic java.lang.String getParameter(java.lang.String name)
getParameter in interface ServletRequestgetParameter in class AbstractCauchoRequestname - the form parameter to returnprotected void parsePostQueryImpl(HashMapImpl<java.lang.String,java.lang.String[]> form)
parsePostQueryImpl in class AbstractCauchoRequest