com.faunos.util.net.http
Class ResponseFactoryFilters
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResponseFactoryFilters
public ResponseFactoryFilters()
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.