Package org.forgerock.openig.http
Class EndpointRegistry
- java.lang.Object
- 
- org.forgerock.openig.http.EndpointRegistry
 
- 
 public final class EndpointRegistry extends Object Registry for Identity Gateway REST API endpoints.Components can use that class to register additional endpoints into the /openig/api namespace: - /openig/api/system/objects/[heap-object-name] for components defined in config.json
- /openig/api/system/objects/.../[router-name]/routes/[route-name]/objects/[heap-object-name] for components defined inside routes
 - See Also:
- GenericHeaplet.endpointRegistry()
 
- /openig/api/system/objects/[heap-object-name] for components defined in 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classEndpointRegistry.RegistrationHandle for un-registering an endpoint.
 - 
Constructor SummaryConstructors Constructor Description EndpointRegistry(Router router, String path)Creates a registry around the given Router instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPath()Returns this registry's base path.StringpathInfo(String name)Returns the path info computed by appending the givennameto this registry's path.EndpointRegistry.Registrationregister(String name, Handler handler)Registers a new endpoint under the givenname.
 
- 
- 
- 
Method Detail- 
registerpublic EndpointRegistry.Registration register(String name, Handler handler) Registers a new endpoint under the givenname.Equivalent to calling this Routercode:router.addRoute(requestUriMatcher(STARTS_WITH, name), handler);- Parameters:
- name- registered endpoint name
- handler- endpoint implementation
- Returns:
- a handle for later endpoint un-registration
 
 - 
pathInfopublic String pathInfo(String name) Returns the path info computed by appending the givennameto this registry's path.- Parameters:
- name- path element to append
- Returns:
- composed path
 
 - 
getPathpublic String getPath() Returns this registry's base path.- Returns:
- this registry's base path.
 
 
- 
 
-