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, toStringpublic AsyncRequest(HttpServletRequestImpl request, HttpServletResponseImpl response, Invocation invocation)
protected Invocation getInvocation()
public ServletContext getServletContext()
ServletRequestgetServletContext in interface ServletRequestgetServletContext in class CauchoRequestWrapperpublic DispatcherType getDispatcherType()
ServletRequestgetDispatcherType in interface ServletRequestgetDispatcherType in class CauchoRequestWrapperpublic java.lang.String getRequestURI()
HttpServletRequestgetRequestURI in interface HttpServletRequestgetRequestURI in class CauchoRequestWrapperpublic java.lang.String getContextPath()
HttpServletRequestgetContextPath() is /myapp for the uri
/myapp/servlet/Hello,
getContextPath in interface HttpServletRequestgetContextPath in class CauchoRequestWrapperpublic 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 CauchoRequestWrapperpublic 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 CauchoRequestWrapperpublic java.lang.String getQueryString()
HttpServletRequestServletRequest.getParameter() to decode the form values.
Corresponds to CGI's PATH_TRANSLATEDgetQueryString in interface HttpServletRequestgetQueryString in class CauchoRequestWrapperprotected java.lang.String calculateQueryString()
public java.lang.String getPageURI()
getPageURI in interface CauchoRequestgetPageURI in class CauchoRequestWrapperpublic java.lang.String getPageContextPath()
getPageContextPath in interface CauchoRequestgetPageContextPath in class CauchoRequestWrapperpublic java.lang.String getPageServletPath()
getPageServletPath in interface CauchoRequestgetPageServletPath in class CauchoRequestWrapperpublic java.lang.String getPagePathInfo()
getPagePathInfo in interface CauchoRequestgetPagePathInfo in class CauchoRequestWrapperpublic java.lang.String getPageQueryString()
getPageQueryString in interface CauchoRequestgetPageQueryString in class CauchoRequestWrapperpublic WebApp getWebApp()
getWebApp in interface CauchoRequestgetWebApp in class CauchoRequestWrapperpublic boolean isAsyncSupported()
ServletRequestisAsyncSupported in interface ServletRequestisAsyncSupported in class CauchoRequestWrapperpublic AsyncContext startAsync() throws java.lang.IllegalStateException
ServletRequeststartAsync in interface ServletRequeststartAsync in class CauchoRequestWrapperjava.lang.IllegalStateExceptionpublic java.lang.String getServletName()
public java.lang.Object getAttribute(java.lang.String name)
ServletRequestgetAttribute in interface ServletRequestgetAttribute in class CauchoRequestWrappername - the attribute namepublic java.util.Enumeration<java.lang.String> getParameterNames()
getParameterNames in interface ServletRequestgetParameterNames in class CauchoRequestWrapperpublic java.util.Map<java.lang.String,java.lang.String[]> getParameterMap()
getParameterMap in interface ServletRequestgetParameterMap in class CauchoRequestWrapperpublic java.lang.String[] getParameterValues(java.lang.String name)
getParameterValues in interface ServletRequestgetParameterValues in class CauchoRequestWrappername - key in the formpublic java.lang.String getParameter(java.lang.String name)
getParameter in interface ServletRequestgetParameter in class CauchoRequestWrappername - the form parameter to return