de.javakaffee.web.msm.serializer.xstream
Class XStreamTranscoder

java.lang.Object
  extended by de.javakaffee.web.msm.serializer.xstream.XStreamTranscoder
All Implemented Interfaces:
SessionAttributesTranscoder

public class XStreamTranscoder
extends Object
implements SessionAttributesTranscoder

A net.spy.memcached.transcoders.Transcoder that serializes catalina StandardSessions using XStream (xml).

Author:
Martin Grotzke

Constructor Summary
XStreamTranscoder(org.apache.catalina.Manager manager)
          Constructor.
 
Method Summary
 Map<String,Object> deserializeAttributes(byte[] in)
          Get the object represented by the given serialized bytes.
 byte[] serializeAttributes(MemcachedBackupSession session, Map<String,Object> attributes)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XStreamTranscoder

public XStreamTranscoder(org.apache.catalina.Manager manager)
Constructor.

Parameters:
manager - the manager
Method Detail

serializeAttributes

public byte[] serializeAttributes(MemcachedBackupSession session,
                                  Map<String,Object> attributes)

Specified by:
serializeAttributes in interface SessionAttributesTranscoder

deserializeAttributes

public Map<String,Object> deserializeAttributes(byte[] in)
Get the object represented by the given serialized bytes.

Specified by:
deserializeAttributes in interface SessionAttributesTranscoder
Parameters:
in - the bytes to deserialize
Returns:
the resulting object


Copyright © 2009-2011. All Rights Reserved.