Class SessionDataMarshaller
- java.lang.Object
-
- org.eclipse.jetty.session.infinispan.SessionDataMarshaller
-
- All Implemented Interfaces:
org.infinispan.protostream.BaseMarshaller<InfinispanSessionData>,org.infinispan.protostream.MessageMarshaller<InfinispanSessionData>
public class SessionDataMarshaller extends java.lang.Object implements org.infinispan.protostream.MessageMarshaller<InfinispanSessionData>
SessionDataMarshaller A marshaller for converting a SessionData object into protobuf format which gives greater control over serialization/deserialization. We use that extra control to ensure that session attributes can be deserialized using either the container class loader or the webapp classloader, as appropriate.
-
-
Constructor Summary
Constructors Constructor Description SessionDataMarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<? extends InfinispanSessionData>getJavaClass()java.lang.StringgetTypeName()InfinispanSessionDatareadFrom(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader in)voidwriteTo(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter out, InfinispanSessionData sdata)
-
-
-
Method Detail
-
getJavaClass
public java.lang.Class<? extends InfinispanSessionData> getJavaClass()
- Specified by:
getJavaClassin interfaceorg.infinispan.protostream.BaseMarshaller<InfinispanSessionData>
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeNamein interfaceorg.infinispan.protostream.BaseMarshaller<InfinispanSessionData>
-
readFrom
public InfinispanSessionData readFrom(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader in) throws java.io.IOException
- Specified by:
readFromin interfaceorg.infinispan.protostream.MessageMarshaller<InfinispanSessionData>- Throws:
java.io.IOException
-
writeTo
public void writeTo(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter out, InfinispanSessionData sdata) throws java.io.IOException- Specified by:
writeToin interfaceorg.infinispan.protostream.MessageMarshaller<InfinispanSessionData>- Throws:
java.io.IOException
-
-