edu.umc.marrow.servlet
Class HttpSessionContext
java.lang.Object
edu.umc.marrow.application.SessionContext
edu.umc.marrow.servlet.HttpSessionContext
public class HttpSessionContext
- extends SessionContext
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpSessionContext
public HttpSessionContext(javax.servlet.http.HttpServletRequest request)
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