Class FapiInteractionIdFilter
java.lang.Object
org.forgerock.openig.filter.finance.FapiInteractionIdFilter
- All Implemented Interfaces:
Filter
A
FapiInteractionIdFilter is responsible to manage the FAPI_INTERACTION_ID header value.
- Creating a new UUID header value if the request header is missing
- Propagating the request header downstream (if it as missing)
- Adding the header value back in the response
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classCreates and initializes a fapi interaction-id filter in a heap environment. -
Method Summary
-
Method Details
-
filter
public Promise<Response,NeverThrowsException> filter(Context context, Request request, Handler next) Description copied from interface:FilterFilters the request and/or response of an exchange. To pass the request to the next filter or handler in the chain, the filter callsnext.handle(context, request).This method may elect not to pass the request to the next filter or handler, and instead handle the request itself. It can achieve this by merely avoiding a call to
next.handle(context, request)and creating its own response object. The filter is also at liberty to replace a response with another of its own by intercepting the response returned by the next handler.
-