Class SessionDataMarshaller

  • All Implemented Interfaces:
    java.io.Serializable, org.infinispan.commons.marshall.Externalizer<InfinispanSessionData>, org.infinispan.protostream.BaseMarshaller<InfinispanSessionData>, org.infinispan.protostream.MessageMarshaller<InfinispanSessionData>

    public class SessionDataMarshaller
    extends java.lang.Object
    implements org.infinispan.protostream.MessageMarshaller<InfinispanSessionData>, org.infinispan.commons.marshall.Externalizer<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.
    See Also:
    Serialized Form
    • Constructor Detail

      • SessionDataMarshaller

        public SessionDataMarshaller()
    • Method Detail

      • getTypeName

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

        public InfinispanSessionData readObject​(java.io.ObjectInput input)
                                         throws java.io.IOException,
                                                java.lang.ClassNotFoundException
        Specified by:
        readObject in interface org.infinispan.commons.marshall.Externalizer<InfinispanSessionData>
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeObject

        public void writeObject​(java.io.ObjectOutput output,
                                InfinispanSessionData object)
                         throws java.io.IOException
        Specified by:
        writeObject in interface org.infinispan.commons.marshall.Externalizer<InfinispanSessionData>
        Throws:
        java.io.IOException
      • 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