Package org.forgerock.openig.filter
Class RequestCopyFilter
- java.lang.Object
-
- org.forgerock.openig.filter.RequestCopyFilter
-
- All Implemented Interfaces:
org.forgerock.http.Filter
public final class RequestCopyFilter extends Object implements org.forgerock.http.Filter
This filter is in charge to create a defensive copy of theRequeston which the chain of execution will be based on. At the end of the chain of execution, the copy request will be closed.This can be helpful when it is needed to reuse the original request(as in the
HttpBasicAuthFilteror in thePasswordReplayFilterHeaplet).
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,org.forgerock.util.promise.NeverThrowsException>filter(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request, org.forgerock.http.Handler next)static RequestCopyFilterrequestCopyFilter()Returns the unique instance of aRequestCopyFilter.
-
-
-
Method Detail
-
requestCopyFilter
public static RequestCopyFilter requestCopyFilter()
Returns the unique instance of aRequestCopyFilter.- Returns:
- The unique instance of a
RequestCopyFilter.
-
filter
public org.forgerock.util.promise.Promise<org.forgerock.http.protocol.Response,org.forgerock.util.promise.NeverThrowsException> filter(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request, org.forgerock.http.Handler next)- Specified by:
filterin interfaceorg.forgerock.http.Filter
-
-