Package org.forgerock.openig.http
Class AdminHttpApplication
- java.lang.Object
-
- org.forgerock.openig.http.AdminHttpApplication
-
- All Implemented Interfaces:
org.forgerock.http.DescribedHttpApplication,org.forgerock.http.HttpApplication
public class AdminHttpApplication extends Object implements org.forgerock.http.DescribedHttpApplication
Configuration class for the OpenIG Administration.
-
-
Constructor Summary
Constructors Constructor Description AdminHttpApplication(String adminPrefix, org.forgerock.json.JsonValue config, Environment environment, RunMode mode)Construct aAdminHttpApplication.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.http.swagger.SwaggerApiProducergetApiProducer()Needed to enforce generation of CREST APIs.org.forgerock.util.Factory<org.forgerock.http.io.Buffer>getBufferFactory()EndpointRegistrygetEndpointRegistry()Returns the API endpoint registry.protected org.forgerock.http.routing.RoutergetOpenIGRouter()Returns the router that represents the /openig namespace (or whatever path/prefix value that was configured).org.forgerock.http.Handlerstart()voidstop()
-
-
-
Constructor Detail
-
AdminHttpApplication
public AdminHttpApplication(String adminPrefix, org.forgerock.json.JsonValue config, Environment environment, RunMode mode) throws IOException
Construct aAdminHttpApplication.- Parameters:
adminPrefix- the prefix to use in the URL to access the admin endpointsconfig- the admin configurationenvironment- the OpenIG environmentmode- OpenIG run mode- Throws:
IOException- when initialization failed
-
-
Method Detail
-
start
public org.forgerock.http.Handler start() throws org.forgerock.http.HttpApplicationException- Specified by:
startin interfaceorg.forgerock.http.HttpApplication- Throws:
org.forgerock.http.HttpApplicationException
-
getBufferFactory
public org.forgerock.util.Factory<org.forgerock.http.io.Buffer> getBufferFactory()
- Specified by:
getBufferFactoryin interfaceorg.forgerock.http.HttpApplication
-
stop
public void stop()
- Specified by:
stopin interfaceorg.forgerock.http.HttpApplication
-
getEndpointRegistry
public EndpointRegistry getEndpointRegistry()
Returns the API endpoint registry.- Returns:
- the API endpoint registry
-
getOpenIGRouter
protected org.forgerock.http.routing.Router getOpenIGRouter()
Returns the router that represents the /openig namespace (or whatever path/prefix value that was configured).- Returns:
- the router that represents the /openig namespace
-
getApiProducer
public org.forgerock.http.swagger.SwaggerApiProducer getApiProducer()
Needed to enforce generation of CREST APIs.- Specified by:
getApiProducerin interfaceorg.forgerock.http.DescribedHttpApplication- Returns:
- a swagger api producer.
-
-