类 MockSessionCookieConfig
java.lang.Object
cn.taketoday.mock.web.MockSessionCookieConfig
- 所有已实现的接口:
jakarta.servlet.SessionCookieConfig
Mock implementation of the
SessionCookieConfig interface.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
- 另请参阅:
-
ServletContext.getSessionCookieConfig()
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getAttribute(String name) intgetName()getPath()booleanbooleanisSecure()voidsetAttribute(String name, String value) voidsetComment(String comment) voidvoidsetHttpOnly(boolean httpOnly) voidsetMaxAge(int maxAge) voidvoidvoidsetSecure(boolean secure)
-
字段详细资料
-
name
-
domain
-
path
-
comment
-
httpOnly
private boolean httpOnly -
secure
private boolean secure -
maxAge
private int maxAge -
attributes
-
-
构造器详细资料
-
MockSessionCookieConfig
public MockSessionCookieConfig()
-
-
方法详细资料
-
setName
- 指定者:
setName在接口中jakarta.servlet.SessionCookieConfig
-
getName
- 指定者:
getName在接口中jakarta.servlet.SessionCookieConfig
-
setDomain
- 指定者:
setDomain在接口中jakarta.servlet.SessionCookieConfig
-
getDomain
- 指定者:
getDomain在接口中jakarta.servlet.SessionCookieConfig
-
setPath
- 指定者:
setPath在接口中jakarta.servlet.SessionCookieConfig
-
getPath
- 指定者:
getPath在接口中jakarta.servlet.SessionCookieConfig
-
setComment
- 指定者:
setComment在接口中jakarta.servlet.SessionCookieConfig
-
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
- 指定者:
setAttribute在接口中jakarta.servlet.SessionCookieConfig
-
getAttribute
- 指定者:
getAttribute在接口中jakarta.servlet.SessionCookieConfig
-
getAttributes
- 指定者:
getAttributes在接口中jakarta.servlet.SessionCookieConfig
-