com.faunos.util.net.http
Class ResponseFactoryFilters

java.lang.Object
  extended by com.faunos.util.net.http.ResponseFactoryFilters

public class ResponseFactoryFilters
extends Object

Utility for wrapping a ResponseFactory with filters that restrict HTTP verb requests to either the implementation set, or the idempotent set (GET and HEAD), or filters that do basic exception handling.

Author:
Babak Farhang

Constructor Summary
ResponseFactoryFilters()
           
 
Method Summary
static ResponseFactory exceptionFilter(ResponseFactory factory)
           
static ResponseFactory idemVerbFilter(ResponseFactory factory)
           
static ResponseFactory stdIdemFilter(ResponseFactory factory)
          Returns a facade to the given factory that handles exceptions thrown by the factory, does not allow the HTTP verbs POST, PUT, DELETE, and handles currently unimplemented verbs.
static ResponseFactory unimplementedVerbFilter(ResponseFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResponseFactoryFilters

public ResponseFactoryFilters()
Method Detail

unimplementedVerbFilter

public static ResponseFactory unimplementedVerbFilter(ResponseFactory factory)

idemVerbFilter

public static ResponseFactory idemVerbFilter(ResponseFactory factory)

exceptionFilter

public static ResponseFactory exceptionFilter(ResponseFactory factory)

stdIdemFilter

public static ResponseFactory stdIdemFilter(ResponseFactory factory)
Returns a facade to the given factory that handles exceptions thrown by the factory, does not allow the HTTP verbs POST, PUT, DELETE, and handles currently unimplemented verbs.



SourceForge.net Logo