public class AsyncRequest extends CauchoRequestWrapper
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
Constructor and Description |
---|
AsyncRequest(HttpServletRequestImpl request,
HttpServletResponseImpl 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 part of the URI corresponding to the application's
prefix.
|
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 request's query string.
|
java.lang.String |
getRequestURI()
Returns the entire request URI
|
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
|
AsyncContext |
startAsync()
Starts an async/comet mode
|
authenticate, getAbstractHttpRequest, getAsyncContext, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentType, getCookie, getCookies, getDateHeader, getHasCookie, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getMemorySession, getMethod, getPart, getParts, getPathTranslated, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getRequest, getRequestDepth, getRequestDispatcher, getRequestedSessionId, getRequestURL, getResponse, getScheme, getServerName, getServerPort, getServletResponse, getSession, getSession, getSessionId, getSocketLink, getStream, getUserPrincipal, getVaryCookies, hasRequest, isAsyncStarted, isComet, isConnectionClosed, isDuplex, isLoginRequested, isMultipartEnabled, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isSecure, isSessionIdFromCookie, isSuspend, isSyntheticCacheHeader, isTop, isUserInRole, isWrapperFor, isWrapperFor, killKeepalive, login, login, logout, removeAttribute, requestLogin, setAttribute, setCharacterEncoding, setHasCookie, setHeader, setRequest, setResponse, setSessionId, setSyntheticCacheHeader, setVaryCookie, startAsync, toString
public AsyncRequest(HttpServletRequestImpl request, HttpServletResponseImpl response, Invocation invocation)
protected Invocation getInvocation()
public ServletContext getServletContext()
ServletRequest
getServletContext
in interface ServletRequest
getServletContext
in class CauchoRequestWrapper
public DispatcherType getDispatcherType()
ServletRequest
getDispatcherType
in interface ServletRequest
getDispatcherType
in class CauchoRequestWrapper
public java.lang.String getRequestURI()
HttpServletRequest
getRequestURI
in interface HttpServletRequest
getRequestURI
in class CauchoRequestWrapper
public java.lang.String getContextPath()
HttpServletRequest
getContextPath()
is /myapp for the uri
/myapp/servlet/Hello,
getContextPath
in interface HttpServletRequest
getContextPath
in class CauchoRequestWrapper
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 CauchoRequestWrapper
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 CauchoRequestWrapper
public java.lang.String getQueryString()
HttpServletRequest
ServletRequest.getParameter()
to decode the form values.
Corresponds to CGI's PATH_TRANSLATED
getQueryString
in interface HttpServletRequest
getQueryString
in class CauchoRequestWrapper
protected java.lang.String calculateQueryString()
public java.lang.String getPageURI()
getPageURI
in interface CauchoRequest
getPageURI
in class CauchoRequestWrapper
public java.lang.String getPageContextPath()
getPageContextPath
in interface CauchoRequest
getPageContextPath
in class CauchoRequestWrapper
public java.lang.String getPageServletPath()
getPageServletPath
in interface CauchoRequest
getPageServletPath
in class CauchoRequestWrapper
public java.lang.String getPagePathInfo()
getPagePathInfo
in interface CauchoRequest
getPagePathInfo
in class CauchoRequestWrapper
public java.lang.String getPageQueryString()
getPageQueryString
in interface CauchoRequest
getPageQueryString
in class CauchoRequestWrapper
public WebApp getWebApp()
getWebApp
in interface CauchoRequest
getWebApp
in class CauchoRequestWrapper
public boolean isAsyncSupported()
ServletRequest
isAsyncSupported
in interface ServletRequest
isAsyncSupported
in class CauchoRequestWrapper
public AsyncContext startAsync() throws java.lang.IllegalStateException
ServletRequest
startAsync
in interface ServletRequest
startAsync
in class CauchoRequestWrapper
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 CauchoRequestWrapper
name
- the attribute namepublic java.util.Enumeration<java.lang.String> getParameterNames()
getParameterNames
in interface ServletRequest
getParameterNames
in class CauchoRequestWrapper
public java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
getParameterMap
in interface ServletRequest
getParameterMap
in class CauchoRequestWrapper
public java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues
in interface ServletRequest
getParameterValues
in class CauchoRequestWrapper
name
- key in the formpublic java.lang.String getParameter(java.lang.String name)
getParameter
in interface ServletRequest
getParameter
in class CauchoRequestWrapper
name
- the form parameter to return