org.springframework.boot.context.embedded.undertow

Class FileSessionPersistence

  • java.lang.Object
    • org.springframework.boot.context.embedded.undertow.FileSessionPersistence
  • All Implemented Interfaces:
    io.undertow.servlet.api.SessionPersistenceManager


    public class FileSessionPersistence
    extends Object
    implements io.undertow.servlet.api.SessionPersistenceManager
    SessionPersistenceManager that stores session information in a file.
    Since:
    1.3.0
    Author:
    Phillip Webb, Peter Leibiger
    • Constructor Detail

      • FileSessionPersistence

        public FileSessionPersistence(File dir)
    • Method Detail

      • persistSessions

        public void persistSessions(String deploymentName,
                                    Map<String,io.undertow.servlet.api.SessionPersistenceManager.PersistentSession> sessionData)
        Specified by:
        persistSessions in interface io.undertow.servlet.api.SessionPersistenceManager
      • loadSessionAttributes

        public Map<String,io.undertow.servlet.api.SessionPersistenceManager.PersistentSession> loadSessionAttributes(String deploymentName,
                                                                                                                     ClassLoader classLoader)
        Specified by:
        loadSessionAttributes in interface io.undertow.servlet.api.SessionPersistenceManager
      • clear

        public void clear(String deploymentName)
        Specified by:
        clear in interface io.undertow.servlet.api.SessionPersistenceManager

Copyright © 2019 Pivotal Software, Inc.. All rights reserved.