接口 SerializableSession

所有已知实现类:
InMemorySessionRepository.InMemoryWebSession

public interface SerializableSession
从以下版本开始:
4.0 2023/2/27 22:42
作者:
Harry Yang
  • 方法概要

    修饰符和类型
    方法
    说明
    void
    Read a serialized version of the contents of this session object from the specified object input stream, without requiring that the StandardSession itself have been serialized.
    void
    Write a serialized version of the contents of this session object to the specified object output stream, without requiring that the StandardSession itself have been serialized.
  • 方法详细资料

    • writeObjectData

      void writeObjectData(ObjectOutputStream stream) throws IOException
      Write a serialized version of the contents of this session object to the specified object output stream, without requiring that the StandardSession itself have been serialized.
      参数:
      stream - The object output stream to write to
      抛出:
      IOException - if an input/output error occurs
    • readObjectData

      void readObjectData(ObjectInputStream stream) throws ClassNotFoundException, IOException
      Read a serialized version of the contents of this session object from the specified object input stream, without requiring that the StandardSession itself have been serialized.
      参数:
      stream - The object input stream to read from
      抛出:
      ClassNotFoundException - if an unknown class is specified
      IOException - if an input/output error occurs