Class 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.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.infinispan.protostream.MessageMarshaller

        org.infinispan.protostream.MessageMarshaller.ProtoStreamReader, org.infinispan.protostream.MessageMarshaller.ProtoStreamWriter
    • Constructor Detail

      • SessionDataMarshaller

        public SessionDataMarshaller()
    • Method Detail

      • getTypeName

        public java.lang.String getTypeName()
        Specified by:
        getTypeName in interface org.infinispan.protostream.BaseMarshaller<InfinispanSessionData>
      • readFrom

        public InfinispanSessionData readFrom​(org.infinispan.protostream.MessageMarshaller.ProtoStreamReader in)
                                       throws java.io.IOException
        Specified by:
        readFrom in interface org.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 interface org.infinispan.protostream.MessageMarshaller<InfinispanSessionData>
        Throws:
        java.io.IOException