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 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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.protostream.MessageMarshaller
org.infinispan.protostream.MessageMarshaller.ProtoStreamReader, org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends InfinispanSessionData>
readFrom
(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader in) void
writeTo
(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter out, InfinispanSessionData sdata)
-
Constructor Details
-
SessionDataMarshaller
public SessionDataMarshaller()
-
-
Method Details
-
getJavaClass
- Specified by:
getJavaClass
in interfaceorg.infinispan.protostream.BaseMarshaller<InfinispanSessionData>
-
getTypeName
- Specified by:
getTypeName
in interfaceorg.infinispan.protostream.BaseMarshaller<InfinispanSessionData>
-
readFrom
public InfinispanSessionData readFrom(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader in) throws IOException - Specified by:
readFrom
in interfaceorg.infinispan.protostream.MessageMarshaller<InfinispanSessionData>
- Throws:
IOException
-
writeTo
public void writeTo(org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter out, InfinispanSessionData sdata) throws IOException - Specified by:
writeTo
in interfaceorg.infinispan.protostream.MessageMarshaller<InfinispanSessionData>
- Throws:
IOException
-