public class ContextSessionPersistence extends Object
Constructor and Description |
---|
ContextSessionPersistence() |
Modifier and Type | Method and Description |
---|---|
static String |
get(SlingHttpServletRequest request,
String key) |
static String |
get(SlingHttpServletRequest request,
String key,
SlingSettingsService settingsService)
Deprecated.
since 5.6. Use
#get(org.apache.sling.api.SlingHttpServletRequest, String) instead. |
static String |
get(SlingHttpServletRequest request,
String key,
String cookieName) |
static String |
getCookieName()
Return the name of the default session persistence cookie.
|
static String |
getCookieName(SlingSettingsService settingsService)
Deprecated.
since 5.6. Use
getCookieName() instead. |
static String |
getCookieName(String cookiePrefix,
SlingSettingsService settingsService)
Deprecated.
since 5.6. Use
getCookieName() instead. |
static String |
getMap(SlingHttpServletRequest request) |
static String |
getMap(SlingHttpServletRequest request,
SlingSettingsService settingsService)
Deprecated.
since 5.6. Use
#getMap(org.apache.sling.api.SlingHttpServletRequest) instead. |
static String |
getMap(SlingHttpServletRequest request,
String cookieName) |
static Map<String,String> |
getStore(SlingHttpServletRequest request,
String key)
Return a single store (by its key) from the default session persistence cookie.
|
static Map<String,String> |
getStore(SlingHttpServletRequest request,
String key,
SlingSettingsService settingsService)
Deprecated.
since 5.6. Use
#getStore(org.apache.sling.api.SlingHttpServletRequest, String) instead. |
static Map<String,String> |
getStore(SlingHttpServletRequest request,
String key,
String cookieName)
Return a single store (by its key) from a named cookie.
|
static void |
put(SlingHttpServletRequest request,
SlingHttpServletResponse response,
String key,
String value)
Add a name/value pair to the default session persistence cookie.
|
static void |
put(SlingHttpServletRequest request,
SlingHttpServletResponse response,
String key,
String value,
SlingSettingsService settingsService)
Deprecated.
since 5.6. Use
#put(org.apache.sling.api.SlingHttpServletRequest, org.apache.sling.api.SlingHttpServletResponse, String, String)
instead. |
static void |
put(SlingHttpServletRequest request,
SlingHttpServletResponse response,
String key,
String value,
String cookieName)
Add a name/value pair to a named cookie.
|
static void |
putStore(SlingHttpServletRequest request,
SlingHttpServletResponse response,
String key,
Map<String,String> store)
Persists a single store under the given key.
|
static void |
putStore(SlingHttpServletRequest request,
SlingHttpServletResponse response,
String key,
Map<String,String> store,
SlingSettingsService settingsService)
Deprecated.
since 5.6. Use
#putStore(org.apache.sling.api.SlingHttpServletRequest, org.apache.sling.api.SlingHttpServletResponse, String, java.util.Map)
instead. |
static void |
putStores(SlingHttpServletRequest request,
SlingHttpServletResponse response,
Map<String,Map<String,String>> stores,
String cookieName)
Put multiple stores at once without overwriting stores previously put
to response.
|
public static String get(SlingHttpServletRequest request, String key, SlingSettingsService settingsService)
#get(org.apache.sling.api.SlingHttpServletRequest, String)
instead.public static String getMap(SlingHttpServletRequest request, SlingSettingsService settingsService)
#getMap(org.apache.sling.api.SlingHttpServletRequest)
instead.public static String getMap(SlingHttpServletRequest request)
public static void put(SlingHttpServletRequest request, SlingHttpServletResponse response, String key, String value, SlingSettingsService settingsService)
#put(org.apache.sling.api.SlingHttpServletRequest, org.apache.sling.api.SlingHttpServletResponse, String, String)
instead.public static void put(SlingHttpServletRequest request, SlingHttpServletResponse response, String key, String value)
public static void put(SlingHttpServletRequest request, SlingHttpServletResponse response, String key, String value, String cookieName)
public static Map<String,String> getStore(SlingHttpServletRequest request, String key, SlingSettingsService settingsService)
#getStore(org.apache.sling.api.SlingHttpServletRequest, String)
instead.public static Map<String,String> getStore(SlingHttpServletRequest request, String key)
public static Map<String,String> getStore(SlingHttpServletRequest request, String key, String cookieName)
public static void putStore(SlingHttpServletRequest request, SlingHttpServletResponse response, String key, Map<String,String> store, SlingSettingsService settingsService)
#putStore(org.apache.sling.api.SlingHttpServletRequest, org.apache.sling.api.SlingHttpServletResponse, String, java.util.Map)
instead.public static void putStore(SlingHttpServletRequest request, SlingHttpServletResponse response, String key, Map<String,String> store)
Note: Don't use this method to persist multiple stores. Use
putStores(SlingHttpServletRequest, SlingHttpServletResponse, Map, String)
instead.
public static void putStores(SlingHttpServletRequest request, SlingHttpServletResponse response, Map<String,Map<String,String>> stores, String cookieName)
request
- The requestresponse
- The responsestores
- The map of storescookieName
- The cookie's namepublic static String getCookieName()
public static String getCookieName(SlingSettingsService settingsService)
getCookieName()
instead.public static String getCookieName(String cookiePrefix, SlingSettingsService settingsService)
getCookieName()
instead."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"