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 classWebSessionCookieConfig.CookieSecureType
-
Constructor Summary
Constructors Constructor Description WebSessionCookieConfig(StandardContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebSessionCookieConfig.CookieSecureTypegetSecure()voidsetSecure(boolean secure)voidsetSecure(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:
setSecurein interfacejakarta.servlet.SessionCookieConfig- Overrides:
setSecurein classSessionCookieConfigImpl- Parameters:
secure- true if the session tracking cookies created on behalf of theServletContextfrom which thisSessionCookieConfigwas 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()
-
-