org.apache.wink.server.handlers
Class HandlersFactory

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

public abstract class HandlersFactory
extends java.lang.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
 java.util.List<? extends ResponseHandler> getErrorHandlers()
          Returns a list of user error handlers.
 java.util.List<? extends RequestHandler> getRequestHandlers()
          Returns a list of user request handlers.
 java.util.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 java.util.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 java.util.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 java.util.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-2013 The Apache Software Foundation. All Rights Reserved.