net.sf.wfnm.web
Class HttpServletRequestWrapper

java.lang.Object
  extended byjavax.servlet.ServletRequestWrapper
      extended byjavax.servlet.http.HttpServletRequestWrapper
          extended bynet.sf.wfnm.web.HttpServletRequestWrapper
All Implemented Interfaces:
javax.servlet.http.HttpServletRequest, javax.servlet.ServletRequest

public class HttpServletRequestWrapper
extends javax.servlet.http.HttpServletRequestWrapper

A custom wrapper for http session request that returns a wrapped http session.

Version:
1.0.6
Author:
Maurizio Albari

Field Summary
 
Fields inherited from interface javax.servlet.http.HttpServletRequest
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
 
Constructor Summary
HttpServletRequestWrapper(javax.servlet.http.HttpServletRequest httpServletRequest)
          Creates a new HttpServletRequestWrapper object.
 
Method Summary
 javax.servlet.http.HttpSession getSession()
          Get the http session and create it if necessary.
 javax.servlet.http.HttpSession getSession(boolean create)
          Get the http session.
 
Methods inherited from class javax.servlet.http.HttpServletRequestWrapper
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole
 
Methods inherited from class javax.servlet.ServletRequestWrapper
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.ServletRequest
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocale, getLocales, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding
 

Constructor Detail

HttpServletRequestWrapper

public HttpServletRequestWrapper(javax.servlet.http.HttpServletRequest httpServletRequest)
Creates a new HttpServletRequestWrapper object.

Parameters:
httpServletRequest - the http servlet request
Method Detail

getSession

public javax.servlet.http.HttpSession getSession(boolean create)
Get the http session.

Parameters:
create - indicates whether it should be created, if not already done
Returns:
the http session (not null if already exists or if create=true)

getSession

public javax.servlet.http.HttpSession getSession()
Get the http session and create it if necessary.

Returns:
the http session


Copyright © 2004-2005 Maurizio Albari@SourceForge.net. All Rights Reserved.