|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
| Method Summary | |
CauchoApplication |
getCauchoApplication()
|
java.lang.String |
getContextPath()
Returns the part of the URI corresponding to the application's prefix. |
Cookie |
getCookie(java.lang.String name)
|
long |
getDate()
|
java.lang.String |
getFilter(java.lang.String contentType)
|
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 request dispatcher for later inclusion or forwarding. |
ReadStream |
getStream()
|
boolean |
isSecure()
Returns true if the connection is secure, e.g. |
boolean |
isUserInRole(java.lang.String role)
Returns true if the user is in the given role. |
void |
removeAttribute(java.lang.String name)
Removes the given attribute. |
void |
resetTimeout()
Resets the request timeout. |
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, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid |
| Methods inherited from interface javax.servlet.ServletRequest |
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getParameter, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getScheme, getServerName, getServerPort, setAttribute |
| Method Detail |
public java.lang.String getContextPath()
HttpServletRequestgetContextPath() is /myapp for the uri
/myapp/servlet/Hello,
getContextPath in interface HttpServletRequestpublic 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)
ServletRequestremoveAttribute in interface ServletRequestjavax.servlet.ServletRequestname - the attribute namepublic CauchoApplication getCauchoApplication()
public ReadStream getStream()
throws java.io.IOException
public int getRequestDepth(int depth)
public long getDate()
public java.lang.String getFilter(java.lang.String contentType)
public void setHeader(java.lang.String key,
java.lang.String value)
public RequestDispatcher getRequestDispatcher(java.lang.String url)
ServletRequesturi
is relative to the request URI. Absolute URIs are relative to
the application prefix (getContextPath()).
If getRequestURI() is /myapp/dir/test.jsp and the
uri is "inc.jsp", the resulting page is
/myapp/dir/inc.jsp.
RequestDispatcher disp;
disp = getRequestDispatcher("inc.jsp?a=b");
disp.include(request, response);
getRequestDispatcher in interface ServletRequestjavax.servlet.ServletRequesturi - path relative to getRequestURI()
(including query string) for the included file.public Cookie getCookie(java.lang.String name)
public boolean isSecure()
ServletRequestisSecure in interface ServletRequestpublic boolean isUserInRole(java.lang.String role)
HttpServletRequestisUserInRole in interface HttpServletRequestpublic void resetTimeout()
public java.lang.String getMedia()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||