Package com.sun.enterprise.web.session
Class WebSessionCookieConfig
- java.lang.Object
-
- org.apache.catalina.core.SessionCookieConfigImpl
-
- com.sun.enterprise.web.session.WebSessionCookieConfig
-
- All Implemented Interfaces:
jakarta.servlet.SessionCookieConfig
public final class WebSessionCookieConfig extends SessionCookieConfigImpl
This class extends SessionCookieConfigImpl to handle additional secure cookie functionality from glassfish-web.xml- Author:
- Shing Wai Chan
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WebSessionCookieConfig.CookieSecureType
-
Constructor Summary
Constructors Constructor Description WebSessionCookieConfig(StandardContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebSessionCookieConfig.CookieSecureType
getSecure()
void
setSecure(boolean secure)
void
setSecure(String secure)
-
Methods inherited from class org.apache.catalina.core.SessionCookieConfigImpl
getAttribute, getAttributes, getComment, getDomain, getMaxAge, getName, getPath, isHttpOnly, isSecure, setAttribute, setComment, setDomain, setHttpOnly, setMaxAge, setName, setPath
-
-
-
-
Constructor Detail
-
WebSessionCookieConfig
public WebSessionCookieConfig(StandardContext context)
-
-
Method Detail
-
setSecure
public void setSecure(boolean secure)
- Specified by:
setSecure
in interfacejakarta.servlet.SessionCookieConfig
- Overrides:
setSecure
in classSessionCookieConfigImpl
- Parameters:
secure
- true if the session tracking cookies created on behalf of theServletContext
from which thisSessionCookieConfig
was acquired shall be marked as secure even if the request that initiated the corresponding session is using plain HTTP instead of HTTPS, and false if they shall be marked as secure only if the request that initiated the corresponding session was also secure
-
setSecure
public void setSecure(String secure)
-
getSecure
public WebSessionCookieConfig.CookieSecureType getSecure()
-
-