org.apache.wink.server.handlers
Class HandlersFactory

java.lang.Object
  extended by org.apache.wink.server.handlers.HandlersFactory

public abstract class HandlersFactory
extends Object

HandlersFactory is responsible to provide the user handlers to the application.

The user should extend this class and override the relevant methods.

The sub-classes MUST have the public default constructor.


Constructor Summary
HandlersFactory()
           
 
Method Summary
 List<? extends ResponseHandler> getErrorHandlers()
          Returns a list of user error handlers.
 List<? extends RequestHandler> getRequestHandlers()
          Returns a list of user request handlers.
 List<? extends ResponseHandler> getResponseHandlers()
          Returns a list of user response handlers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HandlersFactory

public HandlersFactory()
Method Detail

getRequestHandlers

public List<? extends RequestHandler> getRequestHandlers()
Returns a list of user request handlers. The user request handlers are invoked before the actual invocation of the relevant method on the resource in the order specified by the returned list.

Returns:
list of request handlers

getResponseHandlers

public List<? extends ResponseHandler> getResponseHandlers()
Returns a list of user response handlers. The user response handlers are invoked after the actual invocation of the relevant method on the resource in the order specified by the returned list.

Returns:
list of response handlers

getErrorHandlers

public List<? extends ResponseHandler> getErrorHandlers()
Returns a list of user error handlers. The user error handlers are invoked before the "flushing" the result to user in the order specified by the returned list.

Returns:
list of response handlers


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