edu.umc.marrow.servlet
Class HttpSessionContext

java.lang.Object
  extended by edu.umc.marrow.application.SessionContext
      extended by edu.umc.marrow.servlet.HttpSessionContext

public class HttpSessionContext
extends SessionContext


Constructor Summary
HttpSessionContext(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String name)
           
 java.lang.String getRemoteUser()
           
 java.lang.String getSessionId()
           
 boolean isUserInProtocolRole(java.lang.String rolename)
          Implementing subclasses of SessionContext need to implement this to let the ApplicationContext interrogate for framework-specific roles.
 void setAttribute(java.lang.String name, java.lang.Object obj)
           
 
Methods inherited from class edu.umc.marrow.application.SessionContext
hasAttribute, isUserInRole, registerRole
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpSessionContext

public HttpSessionContext(javax.servlet.http.HttpServletRequest request)
Method Detail

getRemoteUser

public java.lang.String getRemoteUser()
Specified by:
getRemoteUser in class SessionContext

isUserInProtocolRole

public boolean isUserInProtocolRole(java.lang.String rolename)
Description copied from class: SessionContext
Implementing subclasses of SessionContext need to implement this to let the ApplicationContext interrogate for framework-specific roles.

Specified by:
isUserInProtocolRole in class SessionContext
Parameters:
rolename - the Name of a logical-role-name as defined in the framework.xml
Returns:
true if the Protocol session

getSessionId

public java.lang.String getSessionId()
Specified by:
getSessionId in class SessionContext

setAttribute

public void setAttribute(java.lang.String name,
                         java.lang.Object obj)
Specified by:
setAttribute in class SessionContext

getAttribute

public java.lang.Object getAttribute(java.lang.String name)
Specified by:
getAttribute in class SessionContext