Package org.opends.server.api
Class HttpEndpoint<C extends HttpEndpointCfg>
java.lang.Object
org.opends.server.api.HttpEndpoint<C>
- Type Parameters:
C
- Type of the configuration used by thisHttpEndpoint
- Direct Known Subclasses:
AdminEndpoint
,AliveEndpoint
,CrestMetricsEndpoint
,HdapEndpoint
,HealthyEndpoint
,PrometheusEndpoint
,Rest2LdapEndpoint
Endpoint attach an
HttpApplication
to an URI.-
Field Summary
Modifier and TypeFieldDescriptionprotected final C
Configuration of this endpoint.protected final ServerContext
Context of this LDAP server.protected static final Factory<org.forgerock.http.io.Buffer>
Use default buffer factory for creating temporary storage for handling requests. -
Constructor Summary
ConstructorDescriptionHttpEndpoint
(C configuration, ServerContext serverContext) Create a newHttpEndpoint
with the given configuration. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isConfigurationValid
(List<LocalizableMessage> unacceptableReasons) Check that the configuration of thisHttpEndpoint
is valid.abstract org.forgerock.http.HttpApplication
Create a new HttpApplication.
-
Field Details
-
USE_DEFAULT_BUFFER_FACTORY
Use default buffer factory for creating temporary storage for handling requests. -
configuration
Configuration of this endpoint. -
serverContext
Context of this LDAP server.
-
-
Constructor Details
-
HttpEndpoint
Create a newHttpEndpoint
with the given configuration.- Parameters:
configuration
- Configuration of thisHttpEndpoint
serverContext
- Context of this LDAP server
-
-
Method Details
-
isConfigurationValid
Check that the configuration of thisHttpEndpoint
is valid. This default implementation try to instantiate and start the underlyingHttpApplication
.- Parameters:
unacceptableReasons
- A list that can be used to hold messages about why the configuration is not acceptable.- Returns:
- true if the configuration is valid.
-
newHttpApplication
public abstract org.forgerock.http.HttpApplication newHttpApplication() throws InitializationExceptionCreate a new HttpApplication.- Returns:
- an
HttpApplication
configured and ready to be started. - Throws:
InitializationException
- If the application cannot be created.
-