Package org.forgerock.openig.http
Class ServerInfoSingletonProvider
java.lang.Object
org.forgerock.openig.http.ServerInfoSingletonProvider
- All Implemented Interfaces:
SingletonResourceProvider
Provides server info (build-time defined values only at the moment) in a read-only fashion.
-
Constructor Summary
ConstructorDescriptionServerInfoSingletonProvider
(ProductInfo productInfo) Create a newServerInfoSingletonProvider
. -
Method Summary
Modifier and TypeMethodDescriptionactionInstance
(Context context, ActionRequest request) Performs the providedaction
against the single resource instance.patchInstance
(Context context, PatchRequest request) Patches
the single resource instance.readInstance
(Context context, ReadRequest request) Reads
the single resource instance.updateInstance
(Context context, UpdateRequest request) Updates
the single resource instance.
-
Constructor Details
-
ServerInfoSingletonProvider
Create a newServerInfoSingletonProvider
.- Parameters:
productInfo
- the product information.
-
-
Method Details
-
readInstance
public Promise<ResourceResponse,ResourceException> readInstance(Context context, ReadRequest request) Description copied from interface:SingletonResourceProvider
Reads
the single resource instance.- Specified by:
readInstance
in interfaceSingletonResourceProvider
- Parameters:
context
- The request server context.request
- The read request.- Returns:
- A
Promise
containing the result of the operation. - See Also:
-
actionInstance
public Promise<ActionResponse,ResourceException> actionInstance(Context context, ActionRequest request) Description copied from interface:SingletonResourceProvider
Performs the providedaction
against the single resource instance.- Specified by:
actionInstance
in interfaceSingletonResourceProvider
- Parameters:
context
- The request server context.request
- The action request.- Returns:
- A
Promise
containing the result of the operation. - See Also:
-
patchInstance
public Promise<ResourceResponse,ResourceException> patchInstance(Context context, PatchRequest request) Description copied from interface:SingletonResourceProvider
Patches
the single resource instance.- Specified by:
patchInstance
in interfaceSingletonResourceProvider
- Parameters:
context
- The request server context.request
- The patch request.- Returns:
- A
Promise
containing the result of the operation. - See Also:
-
updateInstance
public Promise<ResourceResponse,ResourceException> updateInstance(Context context, UpdateRequest request) Description copied from interface:SingletonResourceProvider
Updates
the single resource instance.- Specified by:
updateInstance
in interfaceSingletonResourceProvider
- Parameters:
context
- The request server context.request
- The update request.- Returns:
- A
Promise
containing the result of the operation. - See Also:
-