Package de.uplanet.lucy.server.composer
Klasse CookiesCallable
java.lang.Object
de.uplanet.lucy.server.composer.CookiesCallable
@VelocityVariable("Cookies")
@VelocityCallable("instance")
public final class CookiesCallable
extends Object
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCookiesCallable(de.uplanet.lucy.server.IProcessingContext p_ctx, de.uplanet.lucy.server.configuration.IWebSecurityConfiguration p_webSecurityCfg) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanCheck if the client accepts cookies.Veraltet.This method will be removed.createCookie(String p_strName, String p_strValue) Create a cookie with the specified name and value, and the path set to/.createCookieWithPath(String p_strName, String p_strValue, String p_strPath) Create a cookie with the specified name and value, and optional path.createSessionCookie(ISession p_session) Create a session cookie.booleanCheck if the current processing context is a processing context that contains a request.booleanisSessionMaintenanceInUrlAllowed(ISession p_session) Veraltet.
-
Konstruktordetails
-
CookiesCallable
public CookiesCallable(de.uplanet.lucy.server.IProcessingContext p_ctx, de.uplanet.lucy.server.configuration.IWebSecurityConfiguration p_webSecurityCfg)
-
-
Methodendetails
-
isSessionMaintenanceInUrlAllowed
Veraltet.This method is obsolete since version 9.00.- Gibt zurück:
false
-
isRequestProcessingContext
public boolean isRequestProcessingContext()Check if the current processing context is a processing context that contains a request.- Gibt zurück:
trueif the current processing context is a processing context that contains a request, orfalseotherwise.
-
clientAcceptsCookies
public boolean clientAcceptsCookies()Check if the client accepts cookies.Currently the return value
falsemight not reflect the actual cookie support in the client in all cases.- Gibt zurück:
trueif the processing context does not contain a HTTP request, or if the client supports cookies, orfalseotherwise.
-
clientAcceptsCookiesTriState
Veraltet.This method will be removed.Check if the client accepts cookies.Currently the return value
falsemight not reflect the actual cookie support in the client in all cases.- Gibt zurück:
nullif the processing context does not contain a HTTP request, or if the request is does not contain the necessary information to decide if cookies are supported, ortrueif the client supports cookies, orfalseotherwise.
-
createCookie
Create a cookie with the specified name and value, and the path set to/.- Parameter:
p_strName- The name of the cookie.p_strValue- The cookie's value.- Gibt zurück:
- The cookie.
- Löst aus:
IllegalArgumentException- If the cookie's name or value isnull.
-
createCookieWithPath
Create a cookie with the specified name and value, and optional path.- Parameter:
p_strName- The name of the cookie.p_strValue- The cookie's value.p_strPath- The cookie path (may benullin which case the path is set to/).- Gibt zurück:
- The cookie.
- Löst aus:
IllegalArgumentException- If the cookie's name or value or path isnull.
-
createSessionCookie
Create a session cookie.Calling this method is effectively equivalent with calling
createCookie(String, String)withco_SIdas first, and the unique session ID as second parameter.- Parameter:
p_session-- Gibt zurück:
- The cookie.
-