org.apache.wink.server.handlers
Class AbstractHandlersChain<T extends Handler>
java.lang.Object
org.apache.wink.server.handlers.AbstractHandlersChain<T>
- All Implemented Interfaces:
- Cloneable, HandlersChain
- Direct Known Subclasses:
- RequestHandlersChain, ResponseHandlersChain
public abstract class AbstractHandlersChain<T extends Handler>
- extends Object
- implements HandlersChain, Cloneable
AbstractHandlersChain
public AbstractHandlersChain()
addHandler
public void addHandler(T handler)
run
public void run(MessageContext context)
throws Throwable
- Throws:
Throwable
doChain
public void doChain(MessageContext context)
throws Throwable
- Specified by:
doChain
in interface HandlersChain
- Throws:
Throwable
clone
protected AbstractHandlersChain<T> clone()
throws CloneNotSupportedException
- Overrides:
clone
in class Object
- Throws:
CloneNotSupportedException
handle
protected abstract void handle(T handler,
MessageContext context)
throws Throwable
- Throws:
Throwable
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.