public class Requester extends Object
| Constructor and Description |
|---|
Requester(javax.inject.Provider<org.forgerock.json.resource.Router> router) |
| Modifier and Type | Method and Description |
|---|---|
org.forgerock.json.JsonValue |
action(String location,
String resourceId,
String actionId,
org.forgerock.json.JsonValue payload,
org.forgerock.services.context.Context context)
Request to perform an action at a specified endpoint.
|
org.forgerock.json.JsonValue |
create(String location,
String resourceId,
org.forgerock.json.JsonValue payload,
org.forgerock.services.context.Context context)
Request to create a resource at a specified endpoint.
|
org.forgerock.json.JsonValue |
delete(String location,
String resourceId,
org.forgerock.services.context.Context context)
Request to delete a specified resource at a specified endpoint.
|
org.forgerock.json.JsonValue |
query(String location,
String queryId,
org.forgerock.services.context.Context context)
Request to perform a query at a specified endpoint.
|
org.forgerock.json.JsonValue |
read(String location,
String resourceId,
org.forgerock.services.context.Context context)
Request to read a specified resource at a specified endpoint.
|
org.forgerock.json.JsonValue |
update(String location,
String resourceId,
org.forgerock.json.JsonValue payload,
org.forgerock.services.context.Context context)
Request to update a specified resource at a specified endpoint.
|
@Inject
public Requester(@Named(value="CrestRootRouter")
javax.inject.Provider<org.forgerock.json.resource.Router> router)
public org.forgerock.json.JsonValue create(String location, String resourceId, org.forgerock.json.JsonValue payload, org.forgerock.services.context.Context context) throws org.forgerock.json.resource.ResourceException
location - Endpoint destination of this request. May not be null.resourceId - Resource ID to be created. May be null.payload - Payload of the resource to generate. May not be null.context - Context of this request.JsonValue returned from the endpoint.org.forgerock.json.resource.ResourceException - If any exception occurred during processing.public org.forgerock.json.JsonValue read(String location, String resourceId, org.forgerock.services.context.Context context) throws org.forgerock.json.resource.ResourceException
location - Endpoint destination of this request. May not be null.resourceId - Resource ID to read. May not be null.context - Context of this request.JsonValue returned from the endpoint.org.forgerock.json.resource.ResourceException - If any exception occurred during processing.public org.forgerock.json.JsonValue update(String location, String resourceId, org.forgerock.json.JsonValue payload, org.forgerock.services.context.Context context) throws org.forgerock.json.resource.ResourceException
location - Endpoint destination of this request. May not be null.resourceId - Resource ID to update. May not be null.payload - Payload of the updated resource. May not be null.context - Context of this request.JsonValue returned from the endpoint.org.forgerock.json.resource.ResourceException - If any exception occurred during processing.public org.forgerock.json.JsonValue delete(String location, String resourceId, org.forgerock.services.context.Context context) throws org.forgerock.json.resource.ResourceException
location - Endpoint destination of this request. May not be null.resourceId - Resource ID to delete. May not be null.context - Context of this request.JsonValue returned from the endpoint.org.forgerock.json.resource.ResourceException - If any exception occurred during processing.public org.forgerock.json.JsonValue action(String location, String resourceId, String actionId, org.forgerock.json.JsonValue payload, org.forgerock.services.context.Context context) throws org.forgerock.json.resource.ResourceException
location - Endpoint destination of this request. May not be null.resourceId - Specific resource ID to perform action on. May be null.actionId - act ID to delete. May not be null.context - Context of this request.JsonValue returned from the endpoint.org.forgerock.json.resource.ResourceException - If any exception occurred during processing.public org.forgerock.json.JsonValue query(String location, String queryId, org.forgerock.services.context.Context context) throws org.forgerock.json.resource.ResourceException
location - Endpoint destination of this request. May not be null.queryId - Specific query ID to perform. May be null.context - Context of this request.JsonValue returned from the endpoint.org.forgerock.json.resource.ResourceException - If any exception occurred during processing.Copyright © 2010–2024 Open Identity Platform Community. All rights reserved.