Uses of Class
org.forgerock.http.routing.Version
Package
Description
Models and manages elements of the Hypertext Transfer Protocol.
Processes HTTP message header fields.
Provides routing functionality for HTTP requests.
Classes to support OpenAPI API Descriptions using Swagger.
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
JSON resource Commons HTTP Framework integration.
Common tools used in policy service.
-
Uses of Version in org.forgerock.http
Modifier and TypeMethodDescriptionApiProducer.withVersion
(D descriptor, Version version) Mutate the provided descriptor to add the specified version. -
Uses of Version in org.forgerock.http.header
Modifier and TypeMethodDescriptionAcceptApiVersionHeader.getProtocolVersion()
Gets the acceptable protocol version.ContentApiVersionHeader.getProtocolVersion()
Gets the protocol version of the content of the returned content.AcceptApiVersionHeader.getResourceVersion()
Gets the acceptable resource version.ContentApiVersionHeader.getResourceVersion()
Gets the resource version of the returned content.Modifier and TypeMethodDescriptionAcceptApiVersionHeader.withDefaultProtocolVersion
(Version version) Will set the accepted protocol version, if not provided in the Accept-API-Version header.AcceptApiVersionHeader.withDefaultResourceVersion
(Version version) Will set the accepted resource version, if not provided in the Accept-API-Version header.ModifierConstructorDescriptionAcceptApiVersionHeader
(Version protocol, Version resource) Constructs a new header, initialized with the specified protocol and resource versions.ContentApiVersionHeader
(Version protocolVersion, Version resourceVersion) Constructs a new header, initialized with the specified protocol and resource versions. -
Uses of Version in org.forgerock.http.routing
Modifier and TypeMethodDescriptionApiVersionRouterContext.getProtocolVersion()
Gets the protocol API version of the framework used to handle the request.ApiVersionRouterContext.getResourceVersion()
Gets the API version of the resource that the request was routed to.static Version
Version.version
(int major) Creates a new version using the provided version information and a minor.static Version
Version.version
(int major, int minor) Creates a new version using the provided version information.static Version
Parses the string argument as a version.Modifier and TypeMethodDescriptionstatic RouteMatcher<Version>
RouteMatchers.resourceApiVersionMatcher
(Version version) Creates aRouteMatcher
instance that matches the request resource API version with the provided version.Modifier and TypeMethodDescriptionint
boolean
Version.isCompatibleWith
(Version that) Returnsfalse
if: the MAJOR version numbers are not the same.static RouteMatcher<Request>
RouteMatchers.requestResourceApiVersionMatcher
(Version version) Creates aRouteMatcher
instance that matches the request resource API version with the provided version.static RouteMatcher<Version>
RouteMatchers.resourceApiVersionMatcher
(Version version) Creates aRouteMatcher
instance that matches the request resource API version with the provided version.void
ApiVersionRouterContext.setProtocolVersion
(Version protocolVersion) Sets the protocol API version of the framework used to handle the request. -
Uses of Version in org.forgerock.http.swagger
Modifier and TypeMethodDescriptionio.swagger.models.Swagger
SwaggerApiProducer.withVersion
(io.swagger.models.Swagger descriptor, Version version) -
Uses of Version in org.forgerock.json.resource
Modifier and TypeMethodDescriptionResourceException.getResourceApiVersion()
Response.getResourceApiVersion()
Gets the API version of the resource that the request was routed to.ActionRequest.getResourceVersion()
CreateRequest.getResourceVersion()
DeleteRequest.getResourceVersion()
PatchRequest.getResourceVersion()
QueryRequest.getResourceVersion()
ReadRequest.getResourceVersion()
Request.getResourceVersion()
Gets the requested API version of the resource.UpdateRequest.getResourceVersion()
ResourceApiVersionSpecificationFilter.ResourcePathAndVersion.getVersion()
Get theVersion
corresponding to theresourcePath
.Modifier and TypeMethodDescriptionResourceApiVersionSpecificationFilter.ResourcePathAndVersionSpecification.matchVersion
(Request request) ResourceApiVersionSpecificationFilter.VersionSpecification.matchVersion
(Request request) Test the request to try to find a match based on version configuration.Modifier and TypeMethodDescriptionRouter.addRoute
(Version version, CollectionResourceProvider provider) Adds a new route to this router for the provided collection resource provider.Router.addRoute
(Version version, RequestHandler handler) Adds a new route to this router for the provided request handler.Router.addRoute
(Version version, SingletonResourceProvider provider) Adds a new route to this router for the provided singleton resource provider.static RouteMatcher<Request>
RouteMatchers.requestResourceApiVersionMatcher
(Version version) Creates aRouteMatcher
instance that matches the request resource API version with the provided version.ResourceApiVersionSpecificationFilter.ResourcePathAndVersionSpecification.setDefaultVersion
(Version defaultVersion) Set a defaultVersion
to use if no matching resource path found for request.void
ResourceException.setResourceApiVersion
(Version version) void
Response.setResourceApiVersion
(Version version) Sets the API version of the resource that the request was routed to.ActionRequest.setResourceVersion
(Version resourceVersion) CreateRequest.setResourceVersion
(Version resourceVersion) DeleteRequest.setResourceVersion
(Version resourceVersion) PatchRequest.setResourceVersion
(Version resourceVersion) QueryRequest.setResourceVersion
(Version resourceVersion) ReadRequest.setResourceVersion
(Version resourceVersion) Request.setResourceVersion
(Version resourceVersion) Sets the requested API version of the resource.UpdateRequest.setResourceVersion
(Version resourceVersion) -
Uses of Version in org.forgerock.json.resource.http
Modifier and TypeFieldDescriptionstatic final Version
HttpUtils.DEFAULT_PROTOCOL_VERSION
The default version of the named protocol.static final Version
HttpUtils.PROTOCOL_VERSION_1
Protocol Version 1.static final Version
HttpUtils.PROTOCOL_VERSION_2
Protocol Version 2 - supports upsert on PUT.static final Version
HttpUtils.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.static final Version
HttpUtils.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. -
Uses of Version in org.forgerock.openig.tools
ModifierConstructorDescriptionApiVersionProtocolHeaderFilter
(Version protocolVersion) Creates a new ApiVersionProtocolHeaderFilter.