Package org.springframework.mock.web
Class MockSessionCookieConfig
- java.lang.Object
- org.springframework.mock.web.MockSessionCookieConfig
- All Implemented Interfaces:
SessionCookieConfig
public class MockSessionCookieConfig extends Object implements SessionCookieConfig
Mock implementation of theSessionCookieConfig
interface.- Since:
- 4.0
- Author:
- Juergen Hoeller
- See Also:
ServletContext.getSessionCookieConfig()
Constructor Summary
Constructors Constructor Description MockSessionCookieConfig()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComment()
String
getDomain()
int
getMaxAge()
String
getName()
String
getPath()
boolean
isHttpOnly()
boolean
isSecure()
void
setComment(String comment)
void
setDomain(String domain)
void
setHttpOnly(boolean httpOnly)
void
setMaxAge(int maxAge)
void
setName(String name)
void
setPath(String path)
void
setSecure(boolean secure)
Constructor Detail
MockSessionCookieConfig
public MockSessionCookieConfig()
Method Detail
setName
public void setName(String name)
- Specified by:
setName
in interfaceSessionCookieConfig
getName
public String getName()
- Specified by:
getName
in interfaceSessionCookieConfig
setDomain
public void setDomain(String domain)
- Specified by:
setDomain
in interfaceSessionCookieConfig
getDomain
public String getDomain()
- Specified by:
getDomain
in interfaceSessionCookieConfig
setPath
public void setPath(String path)
- Specified by:
setPath
in interfaceSessionCookieConfig
getPath
public String getPath()
- Specified by:
getPath
in interfaceSessionCookieConfig
setComment
public void setComment(String comment)
- Specified by:
setComment
in interfaceSessionCookieConfig
getComment
public String 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