Class CommonGranularHttpSessionServlet

  • All Implemented Interfaces:
    jakarta.servlet.Servlet, jakarta.servlet.ServletConfig, Serializable

    public class CommonGranularHttpSessionServlet
    extends jakarta.servlet.http.HttpServlet
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String KEY_CARGO  
      static String KEY_SERIAL  
      • Fields inherited from class jakarta.servlet.http.HttpServlet

        LEGACY_DO_HEAD
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doGet​(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp)  
      String getServletInfo()  
      byte[] loadCargo​(jakarta.servlet.http.HttpSession session)  
      void storeCargo​(jakarta.servlet.http.HttpSession session, byte[] cargo)  
      • Methods inherited from class jakarta.servlet.http.HttpServlet

        doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, service
      • Methods inherited from class jakarta.servlet.GenericServlet

        destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
    • Field Detail

      • KEY_SERIAL

        public static final String KEY_SERIAL
      • KEY_CARGO

        public static final String KEY_CARGO
    • Constructor Detail

      • CommonGranularHttpSessionServlet

        public CommonGranularHttpSessionServlet()
    • Method Detail

      • doGet

        protected void doGet​(jakarta.servlet.http.HttpServletRequest req,
                             jakarta.servlet.http.HttpServletResponse resp)
                      throws jakarta.servlet.ServletException,
                             IOException
        Overrides:
        doGet in class jakarta.servlet.http.HttpServlet
        Throws:
        jakarta.servlet.ServletException
        IOException
      • storeCargo

        public void storeCargo​(jakarta.servlet.http.HttpSession session,
                               byte[] cargo)
      • loadCargo

        public byte[] loadCargo​(jakarta.servlet.http.HttpSession session)
      • getServletInfo

        public String getServletInfo()
        Specified by:
        getServletInfo in interface jakarta.servlet.Servlet
        Overrides:
        getServletInfo in class jakarta.servlet.GenericServlet