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.String
getTypeName()
InfinispanSessionData
readFrom(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader in)
void
writeTo(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter out, InfinispanSessionData sdata)
-
-
-
Method Detail
-
getJavaClass
public java.lang.Class<? extends InfinispanSessionData> getJavaClass()
- Specified by:
getJavaClass
in interfaceorg.infinispan.protostream.BaseMarshaller<InfinispanSessionData>
-
getTypeName
public java.lang.String getTypeName()
- Specified by:
getTypeName
in interfaceorg.infinispan.protostream.BaseMarshaller<InfinispanSessionData>
-
readFrom
public InfinispanSessionData readFrom(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader in) throws java.io.IOException
- Specified by:
readFrom
in 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:
writeTo
in interfaceorg.infinispan.protostream.MessageMarshaller<InfinispanSessionData>
- Throws:
java.io.IOException
-
-