|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Fields inherited from interface javax.servlet.http.HttpServletRequest |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
Method Summary | |
CauchoApplication |
getCauchoApplication()
|
java.lang.String |
getChain(java.lang.String contentType)
|
java.lang.String |
getContextPath()
Returns the portion of the request URI that indicates the context of the request. |
Cookie |
getCookie(java.lang.String name)
|
long |
getDate()
|
java.lang.String |
getMedia()
|
java.lang.String |
getPageContextPath()
|
java.lang.String |
getPagePathInfo()
|
java.lang.String |
getPageQueryString()
|
java.lang.String |
getPageServletPath()
|
java.lang.String |
getPageURI()
|
int |
getRequestDepth(int depth)
|
RequestDispatcher |
getRequestDispatcher(java.lang.String url)
Returns a RequestDispatcher object that acts as a wrapper for
the resource located at the given path. |
ReadStream |
getStream()
|
boolean |
isSecure()
Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS. |
boolean |
isUserInRole(java.lang.String role)
Returns a boolean indicating whether the authenticated user is included in the specified logical "role". |
void |
removeAttribute(java.lang.String name)
Removes an attribute from this request. |
void |
setHeader(java.lang.String key,
java.lang.String value)
|
Methods inherited from interface javax.servlet.http.HttpServletRequest |
getAuthType, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid |
Methods inherited from interface javax.servlet.ServletRequest |
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getScheme, getServerName, getServerPort, setAttribute, setCharacterEncoding |
Method Detail |
public java.lang.String getContextPath()
HttpServletRequest
getContextPath
in interface HttpServletRequest
javax.servlet.http.HttpServletRequest
String
specifying the
portion of the request URI that indicates the context
of the requestpublic java.lang.String getPageURI()
public java.lang.String getPageContextPath()
public java.lang.String getPageServletPath()
public java.lang.String getPagePathInfo()
public java.lang.String getPageQueryString()
public void removeAttribute(java.lang.String name)
ServletRequest
Attribute names should follow the same conventions as
package names. Names beginning with java.*
,
javax.*
, and com.sun.*
, are
reserved for use by Sun Microsystems.
removeAttribute
in interface ServletRequest
javax.servlet.ServletRequest
name
- a String
specifying
the name of the attribute to removepublic CauchoApplication getCauchoApplication()
public ReadStream getStream() throws java.io.IOException
public int getRequestDepth(int depth)
public long getDate()
public java.lang.String getChain(java.lang.String contentType)
public void setHeader(java.lang.String key, java.lang.String value)
public RequestDispatcher getRequestDispatcher(java.lang.String url)
ServletRequest
RequestDispatcher
object that acts as a wrapper for
the resource located at the given path.
A RequestDispatcher
object can be used to forward
a request to the resource or to include the resource in a response.
The resource can be dynamic or static.
The pathname specified may be relative, although it cannot extend
outside the current servlet context. If the path begins with
a "/" it is interpreted as relative to the current context root.
This method returns null
if the servlet container
cannot return a RequestDispatcher
.
The difference between this method and ServletContext.getRequestDispatcher(java.lang.String)
is that this method can take a
relative path.
getRequestDispatcher
in interface ServletRequest
javax.servlet.ServletRequest
path
- a String
specifying the pathname
to the resourceRequestDispatcher
object
that acts as a wrapper for the resource
at the specified pathRequestDispatcher
,
ServletContext.getRequestDispatcher(java.lang.String)
public Cookie getCookie(java.lang.String name)
public boolean isSecure()
ServletRequest
isSecure
in interface ServletRequest
javax.servlet.ServletRequest
public boolean isUserInRole(java.lang.String role)
HttpServletRequest
false
.isUserInRole
in interface HttpServletRequest
javax.servlet.http.HttpServletRequest
role
- a String
specifying the name
of the roleboolean
indicating whether
the user making this request belongs to a given role;
false
if the user has not been
authenticatedpublic java.lang.String getMedia()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |