|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.scopes.click.ClickScopeManager
public class ClickScopeManager
Manages the click scope. The "click" scope is like the "request" scope, with
the difference that it is persistent across redirections.
To accomplish it, this scope manager moves the context from request in
session scope temporarily when a redirection is made, and rewrites the URL
with a cookie parameter that identifies the context itself. Once a new
request is made (the one after the redirection) the context is moved back
from session to request scope.
Nested Class Summary | |
---|---|
protected class |
ClickScopeManager.ClickContext
This class represents a "click" context. |
Constructor Summary | |
---|---|
ClickScopeManager()
|
Method Summary | |
---|---|
void |
configure(java.lang.String scopeName,
java.util.Map<java.lang.String,java.lang.Object> parameters)
Configures the scope manager before its real use. |
Context |
createContext(javax.servlet.http.HttpServletRequest request)
Creates a context, given the request. |
static ClickScopeManager.ClickContext |
findContext(javax.servlet.http.HttpServletRequest request)
Finds a ClickContext in request scope. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClickScopeManager()
Method Detail |
---|
public static ClickScopeManager.ClickContext findContext(javax.servlet.http.HttpServletRequest request)
ClickContext
in request scope. There should be
only one.
request
- The HTTP request.
public void configure(java.lang.String scopeName, java.util.Map<java.lang.String,java.lang.Object> parameters)
ScopeManager
configure
in interface ScopeManager<javax.servlet.http.HttpServletRequest>
scopeName
- The scope name.parameters
- The map of parameters used to configure it.public Context createContext(javax.servlet.http.HttpServletRequest request)
ScopeManager
createContext
in interface ScopeManager<javax.servlet.http.HttpServletRequest>
request
- The request to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |