Package org.forgerock.json.resource.http
Class HttpUtils
java.lang.Object
org.forgerock.json.resource.http.HttpUtils
HTTP utility methods and constants.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
the HTTP header for Content-Disposition.static final Version
The default version of the named protocol.static final String
the HTTP request parameter for an action.static final String
the HTTP request parameter to request only the count of results.static final String
Request the CREST API Descriptor.static final String
the HTTP request parameter to specify which fields to return.static final String
the HTTP request parameter to request a certain mimetype for a field.static final String
the HTTP request parameter to request a certain page size.static final String
the HTTP request parameter to specify a paged results cookie.static final String
the HTTP request parameter to specify a paged results offset.static final String
the HTTP request parameter to request pretty printing.static final String
the HTTP request parameter to specify a query expression.static final String
the HTTP request parameter to specify a query filter.static final String
the HTTP request parameter to specify a query id.static final String
the HTTP request parameter to specify the sort keys.static final String
The policy used for counting total paged results.static final Version
Protocol Version 1.static final Version
Protocol Version 2 - supports upsert on PUT.static final Version
Protocol Version 2.1 - supports defacto standard for create requests when the ID of the created resource is to be allocated by the server, which are represented as a POST to the collection endpoint without an_action
query parameter.static final Version
Protocol Version 2.2 - supports _countOnly parameter on query requests to indicate that only a count of the resources matching the supplied query filter on the resource collection are returned. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestType
determineRequestType
(Request request) Determines which CREST operation (CRUDPAQ) of the incoming request.
-
Field Details
-
CONTENT_DISPOSITION
the HTTP header for Content-Disposition.- See Also:
-
PARAM_ACTION
the HTTP request parameter for an action. -
PARAM_FIELDS
the HTTP request parameter to specify which fields to return. -
PARAM_MIME_TYPE
the HTTP request parameter to request a certain mimetype for a field. -
PARAM_PAGE_SIZE
the HTTP request parameter to request a certain page size. -
PARAM_PAGED_RESULTS_COOKIE
the HTTP request parameter to specify a paged results cookie. -
PARAM_PAGED_RESULTS_OFFSET
the HTTP request parameter to specify a paged results offset. -
PARAM_PRETTY_PRINT
the HTTP request parameter to request pretty printing.- See Also:
-
PARAM_QUERY_EXPRESSION
the HTTP request parameter to specify a query expression. -
PARAM_QUERY_FILTER
the HTTP request parameter to specify a query filter. -
PARAM_QUERY_ID
the HTTP request parameter to specify a query id. -
PARAM_SORT_KEYS
the HTTP request parameter to specify the sort keys. -
PARAM_TOTAL_PAGED_RESULTS_POLICY
The policy used for counting total paged results. -
PARAM_COUNT_ONLY
the HTTP request parameter to request only the count of results. -
PARAM_CREST_API
Request the CREST API Descriptor. -
PROTOCOL_VERSION_1
Protocol Version 1. -
PROTOCOL_VERSION_2
Protocol Version 2 - supports upsert on PUT. -
PROTOCOL_VERSION_2_1
Protocol Version 2.1 - supports defacto standard for create requests when the ID of the created resource is to be allocated by the server, which are represented as a POST to the collection endpoint without an_action
query parameter. -
PROTOCOL_VERSION_2_2
Protocol Version 2.2 - supports _countOnly parameter on query requests to indicate that only a count of the resources matching the supplied query filter on the resource collection are returned. -
DEFAULT_PROTOCOL_VERSION
The default version of the named protocol.
-
-
Method Details
-
determineRequestType
Determines which CREST operation (CRUDPAQ) of the incoming request.- Parameters:
request
- The request.- Returns:
- The Operation.
- Throws:
ResourceException
- If the request operation could not be determined or is not supported.
-