Constructor and Description |
---|
RestrictedTokenContextFilter() |
public Promise<ActionResponse,ResourceException> filterAction(Context context, ActionRequest request, RequestHandler next)
Filter
filterAction
in interface Filter
context
- The filter chain context.request
- The action request.next
- 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 request, RequestHandler next)
Filter
filterCreate
in interface Filter
context
- The filter chain context.request
- The create request.next
- 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 request, RequestHandler next)
Filter
filterDelete
in interface Filter
context
- The filter chain context.request
- The delete request.next
- 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 request, RequestHandler next)
Filter
filterPatch
in interface Filter
context
- The filter chain context.request
- The patch request.next
- 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 request, QueryResourceHandler handler, RequestHandler next)
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.request
- The query request.handler
- The resource handler.next
- 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 request, RequestHandler next)
Filter
filterRead
in interface Filter
context
- The filter chain context.request
- The read request.next
- 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 request, RequestHandler next)
Filter
filterUpdate
in interface Filter
context
- The filter chain context.request
- The update request.next
- A request handler representing the remainder of the filter
chain.Promise
containing the result of the operation.Copyright © 2010-2018, ForgeRock All Rights Reserved.