public class NotSupportedFilter extends Object implements Filter
Filter
that just returns a NotSupportedException
for all the
methods implementations. Subclasses have to override just the needed methods.Constructor and Description |
---|
NotSupportedFilter() |
public Promise<ActionResponse,ResourceException> filterAction(Context context, ActionRequest actionRequest, RequestHandler requestHandler)
Filter
filterAction
in interface Filter
context
- The filter chain context.actionRequest
- The action request.requestHandler
- A request handler representing the remainder of the filter
chain.Promise
containing the result of the operation.public Promise<ResourceResponse,ResourceException> filterCreate(Context context, CreateRequest createRequest, RequestHandler requestHandler)
Filter
filterCreate
in interface Filter
context
- The filter chain context.createRequest
- The create request.requestHandler
- A request handler representing the remainder of the filter
chain.Promise
containing the result of the operation.public Promise<ResourceResponse,ResourceException> filterDelete(Context context, DeleteRequest deleteRequest, RequestHandler requestHandler)
Filter
filterDelete
in interface Filter
context
- The filter chain context.deleteRequest
- The delete request.requestHandler
- A request handler representing the remainder of the filter
chain.Promise
containing the result of the operation.public Promise<ResourceResponse,ResourceException> filterPatch(Context context, PatchRequest patchRequest, RequestHandler requestHandler)
Filter
filterPatch
in interface Filter
context
- The filter chain context.patchRequest
- The patch request.requestHandler
- A request handler representing the remainder of the filter
chain.Promise
containing the result of the operation.public Promise<QueryResponse,ResourceException> filterQuery(Context context, QueryRequest queryRequest, QueryResourceHandler queryResourceHandler, RequestHandler requestHandler)
Filter
Implementations which return results directly rather than forwarding the
request should invoke QueryResourceHandler.handleResource(ResourceResponse)
for each resource which matches the query criteria. Once all matching
resources have been returned implementations are required to return
either a QueryResponse
if the query has completed successfully, or
ResourceException
if the query did not complete successfully
(even if some matching resources were returned).
filterQuery
in interface Filter
context
- The filter chain context.queryRequest
- The query request.queryResourceHandler
- The resource handler.requestHandler
- A request handler representing the remainder of the filter
chain.Promise
containing the result of the operation.public Promise<ResourceResponse,ResourceException> filterRead(Context context, ReadRequest readRequest, RequestHandler requestHandler)
Filter
filterRead
in interface Filter
context
- The filter chain context.readRequest
- The read request.requestHandler
- A request handler representing the remainder of the filter
chain.Promise
containing the result of the operation.public Promise<ResourceResponse,ResourceException> filterUpdate(Context context, UpdateRequest updateRequest, RequestHandler requestHandler)
Filter
filterUpdate
in interface Filter
context
- The filter chain context.updateRequest
- The update request.requestHandler
- A request handler representing the remainder of the filter
chain.Promise
containing the result of the operation.Copyright 2011-2017 ForgeRock AS.