Top Fields Constructors Methods
org.apache.catalina.util

public Class SessionConfig

extends Object
Class Inheritance
Imports
jakarta.servlet.SessionCookieConfig, org.apache.catalina.Context

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static String
public static String

Returns:

the cookie name for the context
getSessionCookieName
(Context
The context
context
)

Determine the name to use for the session cookie for the provided context.

public static String

Returns:

the parameter name for the session
getSessionCookiePath
(Context
The context
context
)

Determine the value to use for the session cookie path for the provided context.

public static String

Returns:

the parameter name for the session
getSessionUriParamName
(Context
The context
context
)

Determine the name to use for the session path parameter for the provided context.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_SESSION_PARAMETER_NAMEback to summary
private static final String DEFAULT_SESSION_PARAMETER_NAME

Constructor Detail

SessionConfigback to summary
private SessionConfig()

Method Detail

getConfiguredSessionCookieNameback to summary
private static String getConfiguredSessionCookieName(Context context, String defaultName)
getSessionCookieNameback to summary
public static String getSessionCookieName(Context context)

Determine the name to use for the session cookie for the provided context.

Parameters
context:Context

The context

Returns:String

the cookie name for the context

getSessionCookiePathback to summary
public static String getSessionCookiePath(Context context)

Determine the value to use for the session cookie path for the provided context.

Parameters
context:Context

The context

Returns:String

the parameter name for the session

getSessionUriParamNameback to summary
public static String getSessionUriParamName(Context context)

Determine the name to use for the session path parameter for the provided context.

Parameters
context:Context

The context

Returns:String

the parameter name for the session