com.ibm.dse.cs.servlet
Class HttpSessionHandler
java.lang.Object
|
+--com.ibm.dse.clientserver.ChannelSessionHandler
|
+--com.ibm.dse.cs.servlet.HttpSessionHandler
- public class HttpSessionHandler
- extends ChannelSessionHandler
- implements javax.servlet.http.HttpSessionBindingListener
The purpose of this class is integrate the ChannelSession manangement with the ApplicationSession management
This process should be done using event notification
- See Also:
- Serialized Form
Method Summary |
void |
readExternal(java.io.ObjectInput in)
Invokes the object creation from an ObjectInput. |
void |
valueBound(javax.servlet.http.HttpSessionBindingEvent anEvent)
This method gets invoked when the object is first added to the HttpSession. |
void |
valueUnbound(javax.servlet.http.HttpSessionBindingEvent anEvent)
This method gets invoked when the object is removed from the HttpSession
Session has expired to HttpSession. |
void |
writeExternal(java.io.ObjectOutput s)
Provides concrete serialization handling for ChannelSessionHandler. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
aChannelSessionStateChangedListener
protected transient java.util.Vector aChannelSessionStateChangedListener
HttpSessionHandler
public HttpSessionHandler()
- ChannelSessionHandler.
Register all of the listeners for notification of the session state changes.
readExternal
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Invokes the object creation from an ObjectInput.
In the ObjectInput will arrive an HttpSessionHandler and all the
registered listeners of ChannelSessionStateChangedEvent.
- Overrides:
- readExternal in class ChannelSessionHandler
- Parameters:
s
- java.io.ObjectInput- Throws:
- java.io.IOException. -
- java.lang.ClassNotFoundException. -
valueBound
public void valueBound(javax.servlet.http.HttpSessionBindingEvent anEvent)
- This method gets invoked when the object is first added to the HttpSession.
- Specified by:
- valueBound in interface javax.servlet.http.HttpSessionBindingListener
- Parameters:
anEvent
- javax.servlet.http.HttpSessionBindingEvent
valueUnbound
public void valueUnbound(javax.servlet.http.HttpSessionBindingEvent anEvent)
- This method gets invoked when the object is removed from the HttpSession
Session has expired to HttpSession. The invalidate has been invoked
- Specified by:
- valueUnbound in interface javax.servlet.http.HttpSessionBindingListener
- Parameters:
anEvent
- HttpSessionBindingEvent
writeExternal
public void writeExternal(java.io.ObjectOutput s)
throws java.io.IOException
- Provides concrete serialization handling for ChannelSessionHandler.
Will be serialized the registered listeners of ChannelSessionStateChangedEvent.
- Overrides:
- writeExternal in class ChannelSessionHandler
- Parameters:
s
- java.io.ObjectOutput- Throws:
- java.io.IOException -