info.magnolia.cms.security.auth.callback
Class CompositeCallback

java.lang.Object
  extended by info.magnolia.cms.security.auth.callback.CompositeCallback
All Implemented Interfaces:
HttpClientCallback

Deprecated. since 4.5 - not needed anymore. The SecurityCallbackFilter can be configured to accept multiple HttpClientCallbacks, and the callback themselves accept a request or not.

public class CompositeCallback
extends Object
implements HttpClientCallback

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
 

Version:
$Id$
Author:
fgiust

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

CompositeCallback

public CompositeCallback()
Deprecated. 
Method Detail

accepts

public boolean accepts(javax.servlet.http.HttpServletRequest request)
Deprecated. 
Description copied from interface: HttpClientCallback
Let the implementation if it wants to handle this request.

Specified by:
accepts in interface HttpClientCallback

handle

public void handle(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
Deprecated. 
Delegates the processing to the first matching Callback in patterns.

Specified by:
handle in interface HttpClientCallback

getPatterns

public PatternDelegate[] getPatterns()
Deprecated. 

addPattern

public void addPattern(PatternDelegate pattern)
Deprecated. 


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.