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)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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