org.openmdx.security.auth.callback
Class AmendingCallbackHandler

java.lang.Object
  extended by org.openmdx.security.auth.callback.AmendingCallbackHandler
All Implemented Interfaces:
CallbackHandler

public final class AmendingCallbackHandler
extends Object
implements CallbackHandler

Amending Callback Handler


Constructor Summary
AmendingCallbackHandler(Callback[] prolog, CallbackHandler delegate, Callback[] epilog)
          Constructor
AmendingCallbackHandler(CallbackHandler delegate)
          Constructor
 
Method Summary
 void handle(Callback[] callbacks)
          Amend the callback array before passing them to the delegate.
 void setEpilog(Callback[] epilog)
           
 void setProlog(Callback[] prolog)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmendingCallbackHandler

public AmendingCallbackHandler(CallbackHandler delegate)
Constructor

Parameters:
delegate -

AmendingCallbackHandler

public AmendingCallbackHandler(Callback[] prolog,
                               CallbackHandler delegate,
                               Callback[] epilog)
Constructor

Parameters:
delegate -
Method Detail

setProlog

public void setProlog(Callback[] prolog)
Parameters:
prolog - the prolog to set

setEpilog

public void setEpilog(Callback[] epilog)
Parameters:
epilog - the epilog to set

handle

public void handle(Callback[] callbacks)
            throws IOException,
                   UnsupportedCallbackException
Amend the callback array before passing them to the delegate.

Specified by:
handle in interface CallbackHandler
Parameters:
callbacks - the original callback array
Throws:
IOException
UnsupportedCallbackException


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.