JavaScript is disabled on your browser.
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
javax.servlet

Interface SessionCookieConfig



  • public interface SessionCookieConfig
    Configuration for session tracking cookie properties.
    Since:
    3.0
    • Method Summary

      Methods
      Modifier and Type Method and Description
      java.lang.String getComment ()
      Returns the comment assigned to session tracking cookies for this context.
      java.lang.String getDomain ()
      Return the cookie domain assigned to session tracking for this context.
      int getMaxAge ()
      Returns the lifetime in seconds for session tracking cookies for this context.
      java.lang.String getName ()
      Returns the cookie name assigned to session tracking for this context.
      java.lang.String getPath ()
      Returns the cookie path assigned to session tracking for this context.
      boolean isHttpOnly ()
      Indicates whether session tracking cookies for this context are HTTP only.
      boolean isSecure ()
      Indicates whether session tracking cookies for this context are secure.
      void setComment (java.lang.String s)
      Sets the comment assigned to session tracking cookies for this context.
      void setDomain (java.lang.String s)
      Sets the cookie domain assigned to session tracking for this context.
      void setHttpOnly (boolean httpOnly)
      Marks session tracking cookies for this context as HTTP only.
      void setMaxAge (int maxAge)
      Sets the lifetime in seconds for session tracking cookies for this context.
      void setName (java.lang.String name)
      Set the cookie name assigned to session tracking for this context.
      void setPath (java.lang.String s)
      Sets the cookie path assigned to session tracking for this context.
      void setSecure (boolean secure)
      Marks session tracking cookies for this context as secure.
    • Method Detail

      • setName

        void setName(java.lang.String name)
        Set the cookie name assigned to session tracking for this context.
        See Also:
        getName()
      • getName

        java.lang.String getName()
        Returns the cookie name assigned to session tracking for this context. The default is JSESSIONID.
        See Also:
        setName(java.lang.String)
      • setDomain

        void setDomain(java.lang.String s)
        Sets the cookie domain assigned to session tracking for this context.
        See Also:
        getDomain()
      • getDomain

        java.lang.String getDomain()
        Return the cookie domain assigned to session tracking for this context. The default is null.
        See Also:
        setDomain(java.lang.String)
      • setPath

        void setPath(java.lang.String s)
        Sets the cookie path assigned to session tracking for this context.
        See Also:
        getPath()
      • getPath

        java.lang.String getPath()
        Returns the cookie path assigned to session tracking for this context. The default is the context path of the context.
        See Also:
        getPath()
      • setComment

        void setComment(java.lang.String s)
        Sets the comment assigned to session tracking cookies for this context.
        See Also:
        getComment()
      • getComment

        java.lang.String getComment()
        Returns the comment assigned to session tracking cookies for this context. The default is null.
        See Also:
        setComment(java.lang.String)
      • setHttpOnly

        void setHttpOnly(boolean httpOnly)
        Marks session tracking cookies for this context as HTTP only.
        See Also:
        isHttpOnly()
      • isHttpOnly

        boolean isHttpOnly()
        Indicates whether session tracking cookies for this context are HTTP only.
        See Also:
        setHttpOnly(boolean)
      • setSecure

        void setSecure(boolean secure)
        Marks session tracking cookies for this context as secure.
        See Also:
        isSecure()
      • isSecure

        boolean isSecure()
        Indicates whether session tracking cookies for this context are secure.
        See Also:
        setSecure(boolean)
      • setMaxAge

        void setMaxAge(int maxAge)
        Sets the lifetime in seconds for session tracking cookies for this context.
        See Also:
        getMaxAge()
      • getMaxAge

        int getMaxAge()
        Returns the lifetime in seconds for session tracking cookies for this context.
        See Also:
        setMaxAge(int)
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

AltStyle によって変換されたページ (->オリジナル) /