Package org.forgerock.api
Class CrestApiProducer
java.lang.Object
org.forgerock.api.CrestApiProducer
- All Implemented Interfaces:
ApiProducer<ApiDescription>
An
ApiProducer
implementation for CREST resources, that provides ApiDescription
descriptors.-
Constructor Summary
ConstructorsConstructorDescriptionCrestApiProducer
(String id, String apiVersion) Construct a new producer.CrestApiProducer
(String id, String apiVersion, LocalizableString description) Construct a new producer. -
Method Summary
Modifier and TypeMethodDescriptionaddApiInfo
(ApiDescription api) merge
(List<ApiDescription> descriptions) newChildProducer
(String idFragment) withPath
(ApiDescription api, String parentPath) withVersion
(ApiDescription api, Version version)
-
Constructor Details
-
CrestApiProducer
Construct a new producer.- Parameters:
id
- The API ID fragment for this producer.apiVersion
- The version of the API being described.description
- The API description.
-
CrestApiProducer
Construct a new producer.- Parameters:
id
- The API ID fragment for this producer.apiVersion
- The version of the API being described.
-
-
Method Details
-
withPath
- Specified by:
withPath
in interfaceApiProducer<ApiDescription>
-
withVersion
- Specified by:
withVersion
in interfaceApiProducer<ApiDescription>
-
merge
- Specified by:
merge
in interfaceApiProducer<ApiDescription>
-
addApiInfo
- Specified by:
addApiInfo
in interfaceApiProducer<ApiDescription>
-
newChildProducer
- Specified by:
newChildProducer
in interfaceApiProducer<ApiDescription>
-