public class SessionBackend extends Object implements ISessionBackend
Parameters :
TYPE_BACKEND, TYPE_REQUEST_PROCESSOR
Constructor and Description |
---|
SessionBackend() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the backend.
|
String |
getId()
Get backend id.
|
void |
init(Map<String,String> config)
Initialize the backend using the specified configuration.
|
String |
isBufferingRequired()
Does this backend requires to buffer html.
|
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.
|
public void destroy()
IPlugin
public void init(Map<String,String> config) throws Exception
IPlugin
public String isBufferingRequired()
IPlugin
isBufferingRequired
in interface IPlugin
public ISessionData restore(javax.servlet.http.HttpServletRequest request)
ISessionBackend
restore
in interface ISessionBackend
net.sourceforge.statelessfilter.backend.session.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
session
- Current session.dirtyAttributes
- list of attributes that were added/changed/removed during the
current request.request
- Current request.response
- Current response.IOException
ISessionBackend.save(net.sourceforge.statelessfilter.backend.ISessionData,
java.util.List, javax.servlet.http.HttpServletRequest,
javax.servlet.http.HttpServletResponse)
Copyright © 2009–2013. All rights reserved.