|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 RequestHandler
java.lang.Throwable
public final void handleResponse(MessageContext context, HandlersChain chain) throws java.lang.Throwable
handleResponse
in interface ResponseHandler
java.lang.Throwable
public void init(java.util.Properties props)
init
in interface Handler
Handler#init(Properties)}
protected void handleRequest(MessageContext context) throws java.lang.Throwable
context
- the current message context
java.lang.Throwable
RequestHandler#handleRequest(MessageContext, HandlersChain)}
protected void handleResponse(MessageContext context) throws java.lang.Throwable
context
- the current message context
java.lang.Throwable
ResponseHandler#handleResponse(MessageContext, HandlersChain)}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |