Package org.forgerock.openig.openam
Class RequestResourceUriProvider
- java.lang.Object
-
- org.forgerock.openig.openam.RequestResourceUriProvider
-
- All Implemented Interfaces:
ResourceUriProvider
public class RequestResourceUriProvider extends Object implements ResourceUriProvider
TheRequestResourceUriProvider
has the following configuration:{ "type": "RequestResourceUriProvider", "config": { "useOriginalUri" : boolean [OPTIONAL - default to false. When true, the original URI rather than the request URI will be used to create the resourceUri.] "includeQueryParams" : boolean [OPTIONAL - default to true. When false, any query parameters in the URI will be excluded from the resourceUri.] } }
- Since:
- 7.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RequestResourceUriProvider.Heaplet
Creates and initializes a RequestResourceUriProvider in a heap environment.
-
Constructor Summary
Constructors Constructor Description RequestResourceUriProvider()
Create a newRequestResourceUriProvider
based on the defaults.RequestResourceUriProvider(boolean useOriginalUri, boolean includeQueryParams)
Create a newRequestResourceUriProvider
based on the passed parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
resourceUri(Context context, Request request)
Returns the resource URI as aString
to be used when making policy requests.
-
-
-
Constructor Detail
-
RequestResourceUriProvider
public RequestResourceUriProvider()
Create a newRequestResourceUriProvider
based on the defaults.
-
RequestResourceUriProvider
public RequestResourceUriProvider(boolean useOriginalUri, boolean includeQueryParams)
Create a newRequestResourceUriProvider
based on the passed parameters.- Parameters:
useOriginalUri
- Set totrue
to make use of the original URI when creating the resourceUri.includeQueryParams
- Set tofalse
to exclude any query parameters in the resourceUri.
-
-
Method Detail
-
resourceUri
public String resourceUri(Context context, Request request)
Description copied from interface:ResourceUriProvider
Returns the resource URI as aString
to be used when making policy requests.- Specified by:
resourceUri
in interfaceResourceUriProvider
- Parameters:
context
- The request context.request
- The request.- Returns:
- a
String
representing the resource URI.
-
-