Class MockSessionCookieConfig
java.lang.Object
io.github.cdiunit.internal.servlet6.MockSessionCookieConfig
- All Implemented Interfaces:
jakarta.servlet.SessionCookieConfig
Mock implementation of the
SessionCookieConfig
interface.- See Also:
-
ServletContext.getSessionCookieConfig()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) int
getName()
getPath()
boolean
boolean
isSecure()
void
setAttribute
(String name, String value) void
setComment
(String comment) void
void
setHttpOnly
(boolean httpOnly) void
setMaxAge
(int maxAge) void
void
void
setSecure
(boolean secure)
-
Constructor Details
-
MockSessionCookieConfig
public MockSessionCookieConfig()
-
-
Method Details
-
setName
- Specified by:
setName
in interfacejakarta.servlet.SessionCookieConfig
-
getName
- Specified by:
getName
in interfacejakarta.servlet.SessionCookieConfig
-
setDomain
- Specified by:
setDomain
in interfacejakarta.servlet.SessionCookieConfig
-
getDomain
- Specified by:
getDomain
in interfacejakarta.servlet.SessionCookieConfig
-
setPath
- Specified by:
setPath
in interfacejakarta.servlet.SessionCookieConfig
-
getPath
- Specified by:
getPath
in interfacejakarta.servlet.SessionCookieConfig
-
setComment
- Specified by:
setComment
in interfacejakarta.servlet.SessionCookieConfig
-
getComment
- Specified by:
getComment
in interfacejakarta.servlet.SessionCookieConfig
-
setHttpOnly
public void setHttpOnly(boolean httpOnly) - Specified by:
setHttpOnly
in interfacejakarta.servlet.SessionCookieConfig
-
isHttpOnly
public boolean isHttpOnly()- Specified by:
isHttpOnly
in interfacejakarta.servlet.SessionCookieConfig
-
setSecure
public void setSecure(boolean secure) - Specified by:
setSecure
in interfacejakarta.servlet.SessionCookieConfig
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfacejakarta.servlet.SessionCookieConfig
-
setMaxAge
public void setMaxAge(int maxAge) - Specified by:
setMaxAge
in interfacejakarta.servlet.SessionCookieConfig
-
getMaxAge
public int getMaxAge()- Specified by:
getMaxAge
in interfacejakarta.servlet.SessionCookieConfig
-
setAttribute
- Specified by:
setAttribute
in interfacejakarta.servlet.SessionCookieConfig
-
getAttribute
- Specified by:
getAttribute
in interfacejakarta.servlet.SessionCookieConfig
-
getAttributes
- Specified by:
getAttributes
in interfacejakarta.servlet.SessionCookieConfig
-