|
||||||||||
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
SecurityCallbackFilter
can
be configured to accept multiple HttpClientCallback
s, and the callback themselves accept a request or not.
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()
Deprecated. |
Method Summary | |
---|---|
boolean |
accepts(javax.servlet.http.HttpServletRequest request)
Deprecated. Let the implementation if it wants to handle this request. |
void |
addPattern(PatternDelegate pattern)
Deprecated. |
PatternDelegate[] |
getPatterns()
Deprecated. |
void |
handle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Deprecated. 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 boolean accepts(javax.servlet.http.HttpServletRequest request)
HttpClientCallback
accepts
in interface HttpClientCallback
public void handle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
handle
in interface HttpClientCallback
public PatternDelegate[] getPatterns()
public void addPattern(PatternDelegate pattern)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |