|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.security.auth.callback.CompositeCallback
public class CompositeCallback
A simple "composite" callback that delegates to other callbacks based on rules (a list of PatternDelegate
).
It can be used to configured different callbacks for different urls, see this sample configuration for an example:
+ clientCallback + patterns + admin + delegate - class info.magnolia.cms.security.auth.callback.FormClientCallback - loginForm /mgnl-resources/loginForm/login.html - realmName Magnolia - class info.magnolia.cms.util.UrlPatternDelegate - url /.magnolia* + public + delegate - class info.magnolia.cms.security.auth.callback.FormClientCallback - loginForm /mgnl-resources/public-login.html - realmName Magnolia - class info.magnolia.cms.util.UrlPatternDelegate - url /* - class info.magnolia.cms.security.auth.callback.CompositeCallback
Constructor Summary | |
---|---|
CompositeCallback()
|
Method Summary | |
---|---|
void |
addPattern(PatternDelegate pattern)
Adds a new PatternDelegate. |
PatternDelegate[] |
getPatterns()
|
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Delegates the processing to the first matching Callback in patterns. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeCallback()
Method Detail |
---|
public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
handle
in interface HttpClientCallback
request
- HttpServletRequestresponse
- HttpServletResponsepublic PatternDelegate[] getPatterns()
public void addPattern(PatternDelegate pattern)
pattern
- PatternDelegate instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |