Package org.springframework.mock.web
Class MockSessionCookieConfig
java.lang.Object
org.springframework.mock.web.MockSessionCookieConfig
- All Implemented Interfaces:
SessionCookieConfig
Mock implementation of the
SessionCookieConfig
interface.- Since:
- 4.0
- Author:
- Juergen Hoeller
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getName()
getPath()
boolean
boolean
isSecure()
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 interfaceSessionCookieConfig
-
getName
- Specified by:
getName
in interfaceSessionCookieConfig
-
setDomain
- Specified by:
setDomain
in interfaceSessionCookieConfig
-
getDomain
- Specified by:
getDomain
in interfaceSessionCookieConfig
-
setPath
- Specified by:
setPath
in interfaceSessionCookieConfig
-
getPath
- Specified by:
getPath
in interfaceSessionCookieConfig
-
setComment
- Specified by:
setComment
in interfaceSessionCookieConfig
-
getComment
- Specified by:
getComment
in interfaceSessionCookieConfig
-
setHttpOnly
public void setHttpOnly(boolean httpOnly) - Specified by:
setHttpOnly
in interfaceSessionCookieConfig
-
isHttpOnly
public boolean isHttpOnly()- Specified by:
isHttpOnly
in interfaceSessionCookieConfig
-
setSecure
public void setSecure(boolean secure) - Specified by:
setSecure
in interfaceSessionCookieConfig
-
isSecure
public boolean isSecure()- Specified by:
isSecure
in interfaceSessionCookieConfig
-
setMaxAge
public void setMaxAge(int maxAge) - Specified by:
setMaxAge
in interfaceSessionCookieConfig
-
getMaxAge
public int getMaxAge()- Specified by:
getMaxAge
in interfaceSessionCookieConfig
-