org.apache.wink.server.handlers
Class AbstractHandlersChain<T extends Handler>

java.lang.Object
  extended by org.apache.wink.server.handlers.AbstractHandlersChain<T>
All Implemented Interfaces:
java.lang.Cloneable, HandlersChain
Direct Known Subclasses:
RequestHandlersChain, ResponseHandlersChain

public abstract class AbstractHandlersChain<T extends Handler>
extends java.lang.Object
implements HandlersChain, java.lang.Cloneable


Constructor Summary
AbstractHandlersChain()
           
 
Method Summary
 void addHandler(T handler)
           
protected  AbstractHandlersChain<T> clone()
           
 void doChain(MessageContext context)
           
protected abstract  void handle(T handler, MessageContext context)
           
 void run(MessageContext context)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractHandlersChain

public AbstractHandlersChain()
Method Detail

addHandler

public void addHandler(T handler)

run

public void run(MessageContext context)
         throws java.lang.Throwable
Throws:
java.lang.Throwable

doChain

public void doChain(MessageContext context)
             throws java.lang.Throwable
Specified by:
doChain in interface HandlersChain
Throws:
java.lang.Throwable

clone

protected AbstractHandlersChain<T> clone()
                                                  throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

handle

protected abstract void handle(T handler,
                               MessageContext context)
                        throws java.lang.Throwable
Throws:
java.lang.Throwable


Copyright © 2009 The Apache Software Foundation. All Rights Reserved.