SecurityCallbackFilter
can
be configured to accept multiple HttpClientCallback
s, and the callback themselves accept a request or not.@Deprecated public class CompositeCallback extends Object implements HttpClientCallback
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 and Description |
---|
CompositeCallback()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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)
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.