D - The type of API Descriptor object that will be the result of the description. For example, for CREST this
would be the ApiDescription class from the api-descriptor module.R - The type of request that will be presented to get API descriptions.public interface Describable<D,R>
Handler or CREST RequestHandler) can describe its API
by implementing this interface.| Modifier and Type | Interface and Description |
|---|---|
static interface |
Describable.Listener
Interface for listener instances.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDescriptorListener(Describable.Listener listener)
Add a listener for API Descriptor changes.
|
D |
api(ApiProducer<D> producer)
Provide the API description for the component.
|
D |
handleApiRequest(Context context,
R request)
Handle a request for the API Descriptor.
|
void |
removeDescriptorListener(Describable.Listener listener)
Remove a listener from API Descriptor changes.
|
D api(ApiProducer<D> producer)
producer - The API producer that provides general information to be built into the descriptor.D handleApiRequest(Context context, R request)
context - The request context.request - The request.IllegalStateException - When the request cannot be routed to an acceptable handler.UnsupportedOperationException - When there is no API Descriptor available for the request.void addDescriptorListener(Describable.Listener listener)
listener - The listener.void removeDescriptorListener(Describable.Listener listener)
listener - The listener.Copyright © 2025 Open Identity Platform Community. All rights reserved.