Enhydra 5.1 API

org.enhydra.servlet.tomcat
Class EnhydraRequest

java.lang.Object
  |
  +--org.apache.tomcat.core.Request
        |
        +--org.enhydra.servlet.tomcat.EnhydraRequest

public class EnhydraRequest
extends org.apache.tomcat.core.Request


Field Summary
protected  javax.servlet.http.HttpServletRequest eReq
           
protected  SessionManager sessionManager
           
 
Fields inherited from class org.apache.tomcat.core.Request
attributes, authType, charEncoding, contentLength, contentType, context, contextPath, cookies, didCookies, didParameters, didReadFormData, lookupPath, parameters, pathInfo, queryString, remoteUser, reqA, reqSessionId, requestFacade, requestURI, response, serverSession, servletPath
 
Constructor Summary
EnhydraRequest()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
           
 java.util.Enumeration getAttributeNames()
           
 org.apache.tomcat.core.ServerSession getServerSession(boolean create)
           
 javax.servlet.http.HttpSession getSession(boolean create)
           
 boolean isRequestedSessionIdFromCookie()
           
 boolean isRequestedSessionIdFromURL()
           
 void obtainSessionId()
          Extract the sessionId from a cookie or the url.
 void removeAttribute(java.lang.String name)
           
 void setAttribute(java.lang.String name, java.lang.Object value)
           
 void setRequestAdapter(org.apache.tomcat.core.RequestAdapter reqA)
           
 void setServerSession(org.apache.tomcat.core.ServerSession serverSession)
           
 void setSessionManager(SessionManager sessionManager)
           
 
Methods inherited from class org.apache.tomcat.core.Request
getAuthType, getCharacterEncoding, getCharsetFromContentType, getContentLength, getContentType, getContext, getCookies, getDateHeader, getFacade, getHeader, getHeaderNames, getHeaders, getInputStream, getIntHeader, getLookupPath, getMethod, getParameterNames, getParameterValues, getPathInfo, getProtocol, getQueryString, getReader, getRemoteAddr, getRemoteHost, getRemoteUser, getRequestedSessionId, getRequestURI, getScheme, getServerName, getServerPort, getServletPath, getSession, processCookies, processFormData, processFormData, recycle, setAuthType, setCharacterEncoding, setCharEncoding, setContentLength, setContentType, setContext, setParameters, setPathInfo, setQueryString, setRequestedSessionId, setRequestURI, setResponse, setServerName, setServletPath, unUrlDecode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eReq

protected javax.servlet.http.HttpServletRequest eReq

sessionManager

protected SessionManager sessionManager
Constructor Detail

EnhydraRequest

public EnhydraRequest()
Method Detail

setRequestAdapter

public void setRequestAdapter(org.apache.tomcat.core.RequestAdapter reqA)
Overrides:
setRequestAdapter in class org.apache.tomcat.core.Request

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Overrides:
getAttribute in class org.apache.tomcat.core.Request

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object value)
Overrides:
setAttribute in class org.apache.tomcat.core.Request

removeAttribute

public void removeAttribute(java.lang.String name)
Overrides:
removeAttribute in class org.apache.tomcat.core.Request

getAttributeNames

public java.util.Enumeration getAttributeNames()
Overrides:
getAttributeNames in class org.apache.tomcat.core.Request

isRequestedSessionIdFromCookie

public boolean isRequestedSessionIdFromCookie()
Overrides:
isRequestedSessionIdFromCookie in class org.apache.tomcat.core.Request

isRequestedSessionIdFromURL

public boolean isRequestedSessionIdFromURL()
Overrides:
isRequestedSessionIdFromURL in class org.apache.tomcat.core.Request

getSession

public javax.servlet.http.HttpSession getSession(boolean create)
Overrides:
getSession in class org.apache.tomcat.core.Request

getServerSession

public org.apache.tomcat.core.ServerSession getServerSession(boolean create)
Overrides:
getServerSession in class org.apache.tomcat.core.Request

setServerSession

public void setServerSession(org.apache.tomcat.core.ServerSession serverSession)
Overrides:
setServerSession in class org.apache.tomcat.core.Request

setSessionManager

public void setSessionManager(SessionManager sessionManager)

obtainSessionId

public void obtainSessionId()
Extract the sessionId from a cookie or the url. The sessionID is stored in a cookie called JSESSIONID or a url path param called jsessionid. Tomcat uses the sessionid to find a SessionManager that contains all sessions belonging to this user. We use the sessionID to find a sessionManager that holds all sessions belonging to an application.


Enhydra 5.1 API