类 MockSessionCookieConfig

java.lang.Object
cn.taketoday.mock.web.MockSessionCookieConfig
所有已实现的接口:
jakarta.servlet.SessionCookieConfig

public class MockSessionCookieConfig extends Object implements jakarta.servlet.SessionCookieConfig
Mock implementation of the SessionCookieConfig interface.
从以下版本开始:
4.0
作者:
Juergen Hoeller
另请参阅:
  • ServletContext.getSessionCookieConfig()
  • 字段详细资料

    • name

      @Nullable private String name
    • domain

      @Nullable private String domain
    • path

      @Nullable private String path
    • comment

      @Nullable private String comment
    • httpOnly

      private boolean httpOnly
    • secure

      private boolean secure
    • maxAge

      private int maxAge
    • attributes

      private Map<String,String> attributes
  • 构造器详细资料

    • MockSessionCookieConfig

      public MockSessionCookieConfig()
  • 方法详细资料

    • setName

      public void setName(@Nullable String name)
      指定者:
      setName 在接口中 jakarta.servlet.SessionCookieConfig
    • getName

      @Nullable public String getName()
      指定者:
      getName 在接口中 jakarta.servlet.SessionCookieConfig
    • setDomain

      public void setDomain(@Nullable String domain)
      指定者:
      setDomain 在接口中 jakarta.servlet.SessionCookieConfig
    • getDomain

      @Nullable public String getDomain()
      指定者:
      getDomain 在接口中 jakarta.servlet.SessionCookieConfig
    • setPath

      public void setPath(@Nullable String path)
      指定者:
      setPath 在接口中 jakarta.servlet.SessionCookieConfig
    • getPath

      @Nullable public String getPath()
      指定者:
      getPath 在接口中 jakarta.servlet.SessionCookieConfig
    • setComment

      public void setComment(@Nullable String comment)
      指定者:
      setComment 在接口中 jakarta.servlet.SessionCookieConfig
    • getComment

      @Nullable public String getComment()
      指定者:
      getComment 在接口中 jakarta.servlet.SessionCookieConfig
    • setHttpOnly

      public void setHttpOnly(boolean httpOnly)
      指定者:
      setHttpOnly 在接口中 jakarta.servlet.SessionCookieConfig
    • isHttpOnly

      public boolean isHttpOnly()
      指定者:
      isHttpOnly 在接口中 jakarta.servlet.SessionCookieConfig
    • setSecure

      public void setSecure(boolean secure)
      指定者:
      setSecure 在接口中 jakarta.servlet.SessionCookieConfig
    • isSecure

      public boolean isSecure()
      指定者:
      isSecure 在接口中 jakarta.servlet.SessionCookieConfig
    • setMaxAge

      public void setMaxAge(int maxAge)
      指定者:
      setMaxAge 在接口中 jakarta.servlet.SessionCookieConfig
    • getMaxAge

      public int getMaxAge()
      指定者:
      getMaxAge 在接口中 jakarta.servlet.SessionCookieConfig
    • setAttribute

      public void setAttribute(String name, String value)
      指定者:
      setAttribute 在接口中 jakarta.servlet.SessionCookieConfig
    • getAttribute

      public String getAttribute(String name)
      指定者:
      getAttribute 在接口中 jakarta.servlet.SessionCookieConfig
    • getAttributes

      public Map<String,String> getAttributes()
      指定者:
      getAttributes 在接口中 jakarta.servlet.SessionCookieConfig