| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.wink.server.handlers.AbstractHandler
public abstract class AbstractHandler
Convenience class for implementing a handler that is unaware of the handlers
 chain. A handler may extend this class and implement any or all of
 init(Properties), handleRequest(MessageContext) and
 handleResponse(MessageContext)
| Constructor Summary | |
|---|---|
| AbstractHandler() | |
| Method Summary | |
|---|---|
| protected  void | handleRequest(MessageContext context)Override this method to handle the request. | 
|  void | handleRequest(MessageContext context,
              HandlersChain chain) | 
| protected  void | handleResponse(MessageContext context)Override this method to handle the response. | 
|  void | handleResponse(MessageContext context,
               HandlersChain chain) | 
|  void | init(java.util.Properties props)Override this method if initialization functionality is required | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AbstractHandler()
| Method Detail | 
|---|
public final void handleRequest(MessageContext context,
                                HandlersChain chain)
                         throws java.lang.Throwable
handleRequest in interface RequestHandlerjava.lang.Throwable
public final void handleResponse(MessageContext context,
                                 HandlersChain chain)
                          throws java.lang.Throwable
handleResponse in interface ResponseHandlerjava.lang.Throwablepublic void init(java.util.Properties props)
init in interface HandlerHandler#init(Properties)}
protected void handleRequest(MessageContext context)
                      throws java.lang.Throwable
context - the current message context
java.lang.ThrowableRequestHandler#handleRequest(MessageContext, HandlersChain)}
protected void handleResponse(MessageContext context)
                       throws java.lang.Throwable
context - the current message context
java.lang.ThrowableResponseHandler#handleResponse(MessageContext, HandlersChain)}| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||