public class JSONAESCookieBackend extends CookieBackendSupport
Parameters :
cookieName, domain, maxAge, PARAM_COOKIEDOMAIN, PARAM_COOKIEMAXAGE, PARAM_COOKIENAME, PARAM_COOKIEPATH, path
TYPE_BACKEND, TYPE_REQUEST_PROCESSOR
Constructor and Description |
---|
JSONAESCookieBackend() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the backend.
|
String |
getId()
Get backend id.
|
void |
init(Map<String,String> config)
Loads key and iv for encryption and performs normal init.
|
ISessionData |
restore(javax.servlet.http.HttpServletRequest request)
Restores a session from the backend.
|
void |
save(ISessionData session,
List<String> dirtyAttributes,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Saves a session to the backend.
|
getCookieData, getCookieData, getFullRemoteAddr, isBufferingRequired, setCookieData, setCookieData, setCookieName
public void destroy()
IPlugin
destroy
in interface IPlugin
destroy
in class CookieBackendSupport
com.capgemini.stateless.backend.plaincookie.ISessionBackend#destroy()
public String getId()
IPlugin
getId
in interface IPlugin
getId
in class CookieBackendSupport
com.capgemini.stateless.backend.plaincookie.ISessionBackend#getId()
public void init(Map<String,String> config) throws Exception
init
in interface IPlugin
init
in class CookieBackendSupport
Exception
com.capgemini.stateless.backend.plaincookie.ISessionBackend#init(java.util.Map)
public ISessionData restore(javax.servlet.http.HttpServletRequest request)
ISessionBackend
restore
in interface ISessionBackend
restore
in class CookieBackendSupport
com.capgemini.stateless.backend.plaincookie.ISessionBackend#restore(javax.servlet.http.HttpServletRequest)
public void save(ISessionData session, List<String> dirtyAttributes, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
ISessionBackend
save
in interface ISessionBackend
save
in class CookieBackendSupport
session
- Current session.dirtyAttributes
- list of attributes that were added/changed/removed during the
current request.request
- Current request.response
- Current response.IOException
CookieBackendSupport.save(net.sourceforge.statelessfilter.backend.ISessionData,
java.util.List, javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
Copyright © 2009–2013. All rights reserved.