- All Known Subinterfaces:
SessionConfig.Mutable,SessionManager
- All Known Implementing Classes:
AbstractSessionManager,SessionHandler
public interface SessionConfig
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringSession Max Age.static final StringSession cookie name.static final StringSession Domain.static final StringSession id path parameter name.static final StringSession Path. -
Method Summary
Modifier and TypeMethodDescriptionintintintorg.eclipse.jetty.http.HttpCookie.SameSitebooleanbooleanbooleanbooleanbooleanbooleanboolean
-
Field Details
-
__SessionCookieProperty
Session cookie name. Defaults toJSESSIONID, but can be set with theorg.eclipse.jetty.session.SessionCookiecontext init parameter.- See Also:
-
__DefaultSessionCookie
- See Also:
-
__SessionIdPathParameterNameProperty
Session id path parameter name. Defaults tojsessionid, but can be set with theorg.eclipse.jetty.session.SessionIdPathParameterNamecontext init parameter. If context init param is "none", or setSessionIdPathParameterName is called with null or "none", no URL rewriting will be done.- See Also:
-
__DefaultSessionIdPathParameterName
- See Also:
-
__CheckRemoteSessionEncodingProperty
- See Also:
-
__SessionDomainProperty
Session Domain. If this property is set as a ServletContext InitParam, then it is used as the domain for session cookies. If it is not set, then no domain is specified for the session cookie.- See Also:
-
__DefaultSessionDomain
-
__SessionPathProperty
Session Path. If this property is set as a ServletContext InitParam, then it is used as the path for the session cookie. If it is not set, then the context path is used as the path for the cookie.- See Also:
-
__MaxAgeProperty
Session Max Age. If this property is set as a ServletContext InitParam, then it is used as the max age for the session cookie. If it is not set, then a max age of -1 is used.- See Also:
-
-
Method Details
-
getMaxCookieAge
@ManagedAttribute("if greater the zero, the time in seconds a session cookie will last for") int getMaxCookieAge() -
getMaxInactiveInterval
@ManagedAttribute("default maximum time a session may be idle for (in s)") int getMaxInactiveInterval() -
getRefreshCookieAge
@ManagedAttribute("time before a session cookie is re-set (in s)") int getRefreshCookieAge() -
getSameSite
@ManagedAttribute("the session cookie sameSite mode") org.eclipse.jetty.http.HttpCookie.SameSite getSameSite() -
getSessionComment
@ManagedAttribute("the cookie comment to use when setting session tracking cookies") String getSessionComment() -
getSessionCookie
-
getSessionDomain
@ManagedAttribute("domain of the session cookie, or null for the default") String getSessionDomain() -
getSessionIdPathParameterName
@ManagedAttribute("parameter name to use for URL session tracking") String getSessionIdPathParameterName() -
getSessionIdPathParameterNamePrefix
String getSessionIdPathParameterNamePrefix() -
getSessionPath
-
isCheckingRemoteSessionIdEncoding
@ManagedAttribute("check remote session id encoding") boolean isCheckingRemoteSessionIdEncoding() -
isHttpOnly
@ManagedAttribute("true if cookies use the http only flag") boolean isHttpOnly() -
isPartitioned
@ManagedAttribute("true if cookies have the Partitioned attribute") boolean isPartitioned() -
isSecureCookies
@ManagedAttribute("if true, secure cookie flag is set on session cookies") boolean isSecureCookies() -
isSecureRequestOnly
@ManagedAttribute("true if ???? TODO") boolean isSecureRequestOnly() -
isUsingCookies
@ManagedAttribute("true if sessions are tracked with cookies") boolean isUsingCookies() -
isUsingUriParameters
@ManagedAttribute("true if sessions are tracked with URLs") boolean isUsingUriParameters()
-