org.japano
Class Request
java.lang.Object
javax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
org.japano.Request
- All Implemented Interfaces:
- javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest
public class Request
- extends javax.servlet.http.HttpServletRequestWrapper
Japano specific HttpServletRequestWrapper. You subclass this and register
the subclass via the init parameter "requestClass" of the japano
servlet.
- Version:
- $Id: Request.java,v 1.15 2005/11/18 15:20:10 fforw Exp $
- Author:
- Sven Helmberger ( sven dot helmberger at gmx dot de )
Fields inherited from interface javax.servlet.http.HttpServletRequest |
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
Constructor Summary |
Request(javax.servlet.http.HttpServletRequest request,
JapanoConfig japanoConfig)
Creates a new instance of Request |
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getUserPrincipal, isUserInRole |
Methods inherited from class javax.servlet.ServletRequestWrapper |
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.servlet.ServletRequest |
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding |
Request
public Request(javax.servlet.http.HttpServletRequest request,
JapanoConfig japanoConfig)
- Creates a new instance of Request
getSession
public javax.servlet.http.HttpSession getSession()
- Specified by:
getSession
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getSession
in class javax.servlet.http.HttpServletRequestWrapper
getSession
public javax.servlet.http.HttpSession getSession(boolean create)
- Specified by:
getSession
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getSession
in class javax.servlet.http.HttpServletRequestWrapper
getRequestURI
public java.lang.String getRequestURI()
- Specified by:
getRequestURI
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getRequestURI
in class javax.servlet.http.HttpServletRequestWrapper
getRealPath
public java.lang.String getRealPath(java.lang.String path)
- Specified by:
getRealPath
in interface javax.servlet.ServletRequest
- Overrides:
getRealPath
in class javax.servlet.ServletRequestWrapper
getServerBaseURL
public java.lang.StringBuffer getServerBaseURL()
getRequestURL
public java.lang.StringBuffer getRequestURL()
- Specified by:
getRequestURL
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getRequestURL
in class javax.servlet.http.HttpServletRequestWrapper
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getServletPath
public java.lang.String getServletPath()
- Specified by:
getServletPath
in interface javax.servlet.http.HttpServletRequest
- Overrides:
getServletPath
in class javax.servlet.http.HttpServletRequestWrapper
release
public void release()
- Releases the request - can be used to clean up resources.
getPartId
public java.lang.String getPartId()
- Returns the part id given in this request or
null
.
The part id is fetched from the HTTP parameter ".id". If it is set, the
page generator will only output the part with that id.
isRequestedSessionIdValid
public boolean isRequestedSessionIdValid()
- Specified by:
isRequestedSessionIdValid
in interface javax.servlet.http.HttpServletRequest
- Overrides:
isRequestedSessionIdValid
in class javax.servlet.http.HttpServletRequestWrapper
isRequestedSessionIdFromUrl
public boolean isRequestedSessionIdFromUrl()
- Specified by:
isRequestedSessionIdFromUrl
in interface javax.servlet.http.HttpServletRequest
- Overrides:
isRequestedSessionIdFromUrl
in class javax.servlet.http.HttpServletRequestWrapper
isRequestedSessionIdFromURL
public boolean isRequestedSessionIdFromURL()
- Specified by:
isRequestedSessionIdFromURL
in interface javax.servlet.http.HttpServletRequest
- Overrides:
isRequestedSessionIdFromURL
in class javax.servlet.http.HttpServletRequestWrapper
isRequestedSessionIdFromCookie
public boolean isRequestedSessionIdFromCookie()
- Specified by:
isRequestedSessionIdFromCookie
in interface javax.servlet.http.HttpServletRequest
- Overrides:
isRequestedSessionIdFromCookie
in class javax.servlet.http.HttpServletRequestWrapper