org.norther.tammi.spray.session
Interface SerializableSession

All Superinterfaces:
AuthenticatedSession, HttpSession
All Known Implementing Classes:
DefaultSession

public interface SerializableSession
extends AuthenticatedSession

An interface to serializable sessions.

Version:
$Id: SerializableSession.java,v 1.2 2009/09/28 15:08:29 cvsimp Exp $
Author:
Ilkka Priha

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.norther.tammi.spray.session.AuthenticatedSession
AuthenticatedSession.RemoteClient
 
Method Summary
 void activate()
          Activates session attributes.
 void passivate()
          Passivates session attributes.
 void readObjectData(ObjectInputStream stream)
          Reads a serialized version of the contents of the session object from the specified object input stream, without requiring that the session itself has been serialized.
 void writeObjectData(ObjectOutputStream stream)
          Writes a serialized version of the contents of the session object to the specified object output stream, without requiring that the session itself has been serialized.
 
Methods inherited from interface org.norther.tammi.spray.session.AuthenticatedSession
access, getAttributeNames, getRemoteClient, getUserPrincipal, isValid, registerRemoteClient, registerUserPrincipal
 
Methods inherited from interface javax.servlet.http.HttpSession
getAttribute, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getServletContext, getSessionContext, getValue, getValueNames, invalidate, isNew, putValue, removeAttribute, removeValue, setAttribute, setMaxInactiveInterval
 

Method Detail

activate

void activate()
Activates session attributes.


passivate

void passivate()
Passivates session attributes.


readObjectData

void readObjectData(ObjectInputStream stream)
                    throws ClassNotFoundException,
                           IOException
Reads a serialized version of the contents of the session object from the specified object input stream, without requiring that the session itself has been serialized.

Parameters:
stream - the object input stream to read from.
Throws:
ClassNotFoundException - if an unknown class is specified
IOException - if an input/output error occurs.

writeObjectData

void writeObjectData(ObjectOutputStream stream)
                     throws IOException
Writes a serialized version of the contents of the session object to the specified object output stream, without requiring that the session itself has been serialized.

Parameters:
stream - the object output stream to write to.
Throws:
IOException - if an input/output error occurs.


Copyright © 2004 The Norther Organization. All rights reserved.