com.wwm.context.servlet
Class WebSessionContext

java.lang.Object
  extended by com.wwm.context.servlet.WebSessionContext
All Implemented Interfaces:
SessionContext

public class WebSessionContext
extends Object
implements SessionContext

Bean that contains all session data that we want to be able to share between different requests for a given session. Interface is designed to be like javax.servlet.Session where possible.

Author:
Neale Upstone

Constructor Summary
WebSessionContext(javax.servlet.http.HttpSession httpSession)
          Construct one
 
Method Summary
 Object get(String name)
          Get named object
 String getSessionId()
           
 void invalidate()
          Invalidate session
 void set(String name, Object objInstance)
          Set object for a given name
 void setSessionId(String id)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WebSessionContext

public WebSessionContext(javax.servlet.http.HttpSession httpSession)
Construct one

Method Detail

getSessionId

public String getSessionId()
Specified by:
getSessionId in interface SessionContext

setSessionId

public void setSessionId(String id)
Specified by:
setSessionId in interface SessionContext

get

public Object get(String name)
Get named object

Specified by:
get in interface SessionContext
Parameters:
name -
Returns:
object, or null

set

public void set(String name,
                Object objInstance)
Set object for a given name

Specified by:
set in interface SessionContext
Parameters:
name -
objInstance -

invalidate

public void invalidate()
Invalidate session

Specified by:
invalidate in interface SessionContext

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004 or was it 2003-2011 Whirlwind Match Limited. All Rights Reserved.