org.mule.session
Class LegacySessionHandler

java.lang.Object
  extended by org.mule.session.LegacySessionHandler
All Implemented Interfaces:
SessionHandler

Deprecated. Since all properties are converted to Strings, this session handler has the issue EE-1705/MULE-4567. Use SerializeAndEncodeSessionHandler or SerializeOnlySessionHandler instead.

public class LegacySessionHandler
extends Object
implements SessionHandler

A session handler used to store and retrieve session information on an event. The MuleSession information is stored as a header on the message (does not support Tcp, Udp, etc. unless the MuleMessage object is serialised across the wire). The session is stored in the "MULE_SESSION" property as String key/value pairs that are Base64 encoded, for example: ID=dfokokdf-3ek3oke-dkfokd;MySessionProp1=Value1;MySessionProp2=Value2


Field Summary
protected  Log logger
          Deprecated.  
 
Constructor Summary
LegacySessionHandler()
          Deprecated.  
 
Method Summary
 String getSessionIDKey()
          Deprecated. This method is no longer needed and will be removed in the next major release
 MuleSession retrieveSessionInfoFromMessage(MuleMessage message)
          Deprecated.  
 void retrieveSessionInfoFromMessage(MuleMessage message, MuleSession session)
          Deprecated. Use retrieveSessionInfoFromMessage(MuleMessage message) instead
 void storeSessionInfoToMessage(MuleSession session, MuleMessage message)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected transient Log logger
Deprecated. 
Constructor Detail

LegacySessionHandler

public LegacySessionHandler()
Deprecated. 
Method Detail

retrieveSessionInfoFromMessage

public MuleSession retrieveSessionInfoFromMessage(MuleMessage message)
                                           throws MuleException
Deprecated. 
Specified by:
retrieveSessionInfoFromMessage in interface SessionHandler
Throws:
MuleException

retrieveSessionInfoFromMessage

public void retrieveSessionInfoFromMessage(MuleMessage message,
                                           MuleSession session)
                                    throws MuleException
Deprecated. Use retrieveSessionInfoFromMessage(MuleMessage message) instead

Specified by:
retrieveSessionInfoFromMessage in interface SessionHandler
Throws:
MuleException

storeSessionInfoToMessage

public void storeSessionInfoToMessage(MuleSession session,
                                      MuleMessage message)
                               throws MuleException
Deprecated. 
Specified by:
storeSessionInfoToMessage in interface SessionHandler
Throws:
MuleException

getSessionIDKey

public String getSessionIDKey()
Deprecated. This method is no longer needed and will be removed in the next major release

Description copied from interface: SessionHandler
The property name of the session id to use when creating the Mule session. by default the property name "ID" will be used. If no property was set on the session called "ID" a session id will be automatically generated

Specified by:
getSessionIDKey in interface SessionHandler
Returns:
the property name of the session id that is set on the session


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.