Package | Description |
---|---|
org.forgerock.api |
ForgeRock API Descriptor models, builders, and utilities.
|
org.forgerock.api.models |
ForgeRock API Descriptor models.
|
org.forgerock.http |
Models and manages elements of the Hypertext Transfer Protocol.
|
org.forgerock.http.header |
Processes HTTP message header fields.
|
org.forgerock.http.routing |
Provides routing functionality for HTTP requests.
|
org.forgerock.json.resource |
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
|
org.forgerock.selfservice.stages.reset |
This package contains a common reset password stage implementation.
|
org.forgerock.selfservice.stages.user |
This package contains a common user related stage implementation.
|
Modifier and Type | Method and Description |
---|---|
ApiDescription |
CrestApiProducer.withVersion(ApiDescription api,
Version version) |
Constructor and Description |
---|
DuplicateDescriptionException(Version version)
Construct a new exception for the given version with an unknown path.
|
DuplicateDescriptionException(Version version,
String path)
Construct a new exception for the given path and version.
|
DuplicateDescriptionException(Version version,
String path,
Throwable cause)
Construct a new exception for the given path and version.
|
Modifier and Type | Field and Description |
---|---|
static Version |
VersionedPath.UNVERSIONED
Version
0.0 represents null/empty, for when resource versions are not required by an API (e.g., OpenIDM). |
Modifier and Type | Method and Description |
---|---|
protected Map<Version,Resource> |
VersionedPath.getPaths()
Gets a
Map of versions to Resource s. |
Set<Version> |
VersionedPath.getVersions()
Returns all resource-versions on this path.
|
Modifier and Type | Method and Description |
---|---|
Resource |
VersionedPath.get(Version version)
Gets the
Resource for a given version. |
VersionedPath.Builder |
VersionedPath.Builder.put(Version version,
Resource resource)
Adds a resource-version.
|
Modifier and Type | Method and Description |
---|---|
D |
ApiProducer.withVersion(D descriptor,
Version version)
Mutate the provided descriptor to add the specified version.
|
Modifier and Type | Method and Description |
---|---|
Version |
ContentApiVersionHeader.getProtocolVersion()
Gets the protocol version of the content of the returned content.
|
Version |
AcceptApiVersionHeader.getProtocolVersion()
Gets the acceptable protocol version.
|
Version |
ContentApiVersionHeader.getResourceVersion()
Gets the resource version of the returned content.
|
Version |
AcceptApiVersionHeader.getResourceVersion()
Gets the acceptable resource version.
|
Modifier and Type | Method and Description |
---|---|
AcceptApiVersionHeader |
AcceptApiVersionHeader.withDefaultProtocolVersion(Version version)
Will set the accepted protocol version, if not provided in the
Accept-API-Version header.
|
AcceptApiVersionHeader |
AcceptApiVersionHeader.withDefaultResourceVersion(Version version)
Will set the accepted resource version, if not provided in the
Accept-API-Version header.
|
Constructor and Description |
---|
AcceptApiVersionHeader(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.
|
Modifier and Type | Method and Description |
---|---|
Version |
ApiVersionRouterContext.getProtocolVersion()
Gets the protocol API version of the framework used to handle the request.
|
Version |
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 |
Version.version(String s)
Parses the string argument as a version.
|
Modifier and Type | Method and Description |
---|---|
static RouteMatcher<Version> |
RouteMatchers.resourceApiVersionMatcher(Version version)
Creates a
RouteMatcher instance that matches the request
resource API version with the provided version. |
Modifier and Type | Method and Description |
---|---|
int |
Version.compareTo(Version that) |
boolean |
Version.isCompatibleWith(Version that)
Returns
false if:
the MAJOR version numbers are not the same. |
static RouteMatcher<Request> |
RouteMatchers.requestResourceApiVersionMatcher(Version version)
Creates a
RouteMatcher instance that matches the request
resource API version with the provided version. |
static RouteMatcher<Version> |
RouteMatchers.resourceApiVersionMatcher(Version version)
Creates a
RouteMatcher 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.
|
Modifier and Type | Method and Description |
---|---|
Version |
Response.getResourceApiVersion()
Gets the API version of the resource that the request was routed to.
|
Version |
ResourceException.getResourceApiVersion() |
Version |
UpdateRequest.getResourceVersion() |
Version |
Request.getResourceVersion()
Gets the requested API version of the resource.
|
Version |
ReadRequest.getResourceVersion() |
Version |
QueryRequest.getResourceVersion() |
Version |
PatchRequest.getResourceVersion() |
Version |
DeleteRequest.getResourceVersion() |
Version |
CreateRequest.getResourceVersion() |
Version |
ActionRequest.getResourceVersion() |
Modifier and Type | Method and Description |
---|---|
RouteMatcher<Request> |
Router.addRoute(Version version,
CollectionResourceProvider provider)
Adds a new route to this router for the provided collection resource
provider.
|
RouteMatcher<Request> |
Router.addRoute(Version version,
RequestHandler handler)
Adds a new route to this router for the provided request handler.
|
RouteMatcher<Request> |
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 a
RouteMatcher instance that matches the request
resource API version with the provided version. |
void |
Response.setResourceApiVersion(Version version)
Sets the API version of the resource that the request was routed to.
|
void |
ResourceException.setResourceApiVersion(Version version) |
UpdateRequest |
UpdateRequest.setResourceVersion(Version resourceVersion) |
Request |
Request.setResourceVersion(Version resourceVersion)
Sets the requested API version of the resource.
|
ReadRequest |
ReadRequest.setResourceVersion(Version resourceVersion) |
QueryRequest |
QueryRequest.setResourceVersion(Version resourceVersion) |
PatchRequest |
PatchRequest.setResourceVersion(Version resourceVersion) |
DeleteRequest |
DeleteRequest.setResourceVersion(Version resourceVersion) |
CreateRequest |
CreateRequest.setResourceVersion(Version resourceVersion) |
ActionRequest |
ActionRequest.setResourceVersion(Version resourceVersion) |
Modifier and Type | Method and Description |
---|---|
Version |
ResetStageConfig.getResourceVersion()
Gets the Resource Version to use for the identity service.
|
Modifier and Type | Method and Description |
---|---|
ResetStageConfig |
ResetStageConfig.setResourceVersion(Version resourceVersion)
Sets the Resource Version to use for the identity service.
|
Modifier and Type | Method and Description |
---|---|
Version |
UserQueryConfig.getResourceVersion()
Gets the resource version fields to be used when looking up the user.
|
Modifier and Type | Method and Description |
---|---|
UserQueryConfig |
UserQueryConfig.setResourceVersion(Version resourceVersion)
Sets the resource version fields to be used when looking up the user.
|
Copyright © 2010-2018, ForgeRock All Rights Reserved.