Uses of Class
org.forgerock.json.resource.ResourcePath
Package
Description
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
-
Uses of ResourcePath in org.forgerock.json.resource
Modifier and TypeMethodDescriptionCreates a new resource path which is a child of this resource path.Creates a new resource path which is a descendant of this resource path.ResourcePath.concat
(ResourcePath suffix) Creates a new resource path which is a descendant of this resource path.static ResourcePath
ResourcePath.empty()
Returns the empty resource path whose string representation is the empty string and which has zero path elements.static ResourcePath
Creates a new resource path using the provided path template and unencoded path elements.ResourceApiVersionSpecificationFilter.ResourcePathAndVersion.getResourcePath()
Get theResourcePath
to match.ActionRequest.getResourcePathObject()
CreateRequest.getResourcePathObject()
DeleteRequest.getResourcePathObject()
PatchRequest.getResourcePathObject()
QueryRequest.getResourcePathObject()
ReadRequest.getResourcePathObject()
Request.getResourcePathObject()
Returns the non-null
path of the JSON resource to which this request should be targeted.UpdateRequest.getResourcePathObject()
ResourcePath.head
(int endIndex) Returns a resource path which is a subsequence of the path elements contained in this resource path beginning with the first element (0) and ending with the element at positionendIndex-1
.ResourcePath.parent()
Returns the resource path which is the immediate parent of this resource path, ornull
if this resource path is empty.static ResourcePath
ResourcePath.resourcePath
(String path) Parses the provided string representation of a resource path.ResourcePath.subSequence
(int beginIndex, int endIndex) Returns a resource path which is a subsequence of the path elements contained in this resource path beginning with the element at positionbeginIndex
and ending with the element at positionendIndex-1
.ResourcePath.tail
(int beginIndex) Returns a resource path which is a subsequence of the path elements contained in this resource path beginning with the element at positionbeginIndex
and ending with the last element in this resource path.static ResourcePath
Parses the provided string representation of a resource path.Modifier and TypeMethodDescriptionJsonValueFunctions.resourcePath()
Returns the JSON string value as aResourcePath
.Modifier and TypeMethodDescriptionint
ResourcePath.compareTo
(ResourcePath o) Compares this resource path with the provided resource path.ResourcePath.concat
(ResourcePath suffix) Creates a new resource path which is a descendant of this resource path.boolean
ResourceApiVersionSpecificationFilter.NoApiVersionHandler.handle
(Context context, ResourcePath resourcePath) Handler called when a request has no resource API version.void
ResourceApiVersionSpecificationFilter.ResourcePathAndVersionSpecification.handleNoApiVersionSupplied
(Context context, ResourcePath resourcePath) Support handling when no resource API version is supplied on the request.void
ResourceApiVersionSpecificationFilter.VersionSpecification.handleNoApiVersionSupplied
(Context context, ResourcePath resourcePath) Support custom handling when no resource API version is supplied on the request.static ActionRequest
Requests.newActionRequest
(ResourcePath resourcePath, String actionId) Returns a new action request with the provided resource path and action ID.static ActionRequest
Requests.newActionRequest
(ResourcePath resourceContainer, String resourceId, String actionId) Returns a new action request with the provided resource container path, resource ID, and action ID.static Request
Requests.newApiRequest
(ResourcePath path) Returns a new API request with the provided path.static CreateRequest
Requests.newCreateRequest
(ResourcePath resourceContainer, String newResourceId, JsonValue content) Returns a new create request with the provided resource path, new resource ID, and JSON content.static CreateRequest
Requests.newCreateRequest
(ResourcePath resourceContainer, JsonValue content) Returns a new create request with the provided resource path, and JSON content.static DeleteRequest
Requests.newDeleteRequest
(ResourcePath resourcePath) Returns a new delete request with the provided resource path.static DeleteRequest
Requests.newDeleteRequest
(ResourcePath resourceContainer, String resourceId) Returns a new delete request with the provided resource container path, and resource ID.static PatchRequest
Requests.newPatchRequest
(ResourcePath resourceContainer, String resourceId, PatchOperation... operations) Returns a new patch request with the provided resource container path, resource ID, and JSON patch operations.static PatchRequest
Requests.newPatchRequest
(ResourcePath resourcePath, PatchOperation... operations) Returns a new patch request with the provided resource path and JSON patch operations.static QueryRequest
Requests.newQueryRequest
(ResourcePath resourceContainer) Returns a new query request with the provided resource container path.static ReadRequest
Requests.newReadRequest
(ResourcePath resourcePath) Returns a new read request with the provided resource path.static ReadRequest
Requests.newReadRequest
(ResourcePath resourceContainer, String resourceId) Returns a new read request with the provided resource container path, and resource ID.static UpdateRequest
Requests.newUpdateRequest
(ResourcePath resourceContainer, String resourceId, JsonValue newContent) Returns a new update request with the provided resource container path, resource ID, and new JSON content.static UpdateRequest
Requests.newUpdateRequest
(ResourcePath resourcePath, JsonValue newContent) Returns a new update request with the provided resource path and new JSON content.ActionRequest.setResourcePath
(ResourcePath path) CreateRequest.setResourcePath
(ResourcePath path) DeleteRequest.setResourcePath
(ResourcePath path) PatchRequest.setResourcePath
(ResourcePath path) QueryRequest.setResourcePath
(ResourcePath path) ReadRequest.setResourcePath
(ResourcePath path) Request.setResourcePath
(ResourcePath path) Sets the non-null
path of the JSON resource to which this request should be targeted.UpdateRequest.setResourcePath
(ResourcePath path) boolean
ResourcePath.startsWith
(ResourcePath prefix) Returnstrue
if this resource path is equal to or begins with the provided resource resource path.