C
- Type of the configuration used by this HttpEndpoint
public abstract class HttpEndpoint<C extends HttpEndpointCfg> extends Object
HttpApplication
to an URI.Modifier and Type | Field and Description |
---|---|
protected C |
configuration
Configuration of this endpoint.
|
protected ServerContext |
serverContext
Context of this LDAP server.
|
protected static Factory<org.forgerock.http.io.Buffer> |
USE_DEFAULT_BUFFER_FACTORY
Use default buffer factory for creating temporary storage for handling requests.
|
Constructor and Description |
---|
HttpEndpoint(C configuration,
ServerContext serverContext)
Create a new
HttpEndpoint with the given configuration. |
Modifier and Type | Method and Description |
---|---|
boolean |
isConfigurationValid(List<LocalizableMessage> unacceptableReasons)
Check that the configuration of this
HttpEndpoint is valid. |
abstract org.forgerock.http.HttpApplication |
newHttpApplication()
Create a new HttpApplication.
|
protected static final Factory<org.forgerock.http.io.Buffer> USE_DEFAULT_BUFFER_FACTORY
protected final C extends HttpEndpointCfg configuration
protected final ServerContext serverContext
public HttpEndpoint(C configuration, ServerContext serverContext)
HttpEndpoint
with the given configuration.configuration
- Configuration of this HttpEndpoint
serverContext
- Context of this LDAP serverpublic boolean isConfigurationValid(List<LocalizableMessage> unacceptableReasons)
HttpEndpoint
is valid. This default implementation try to
instantiate and start the underlying HttpApplication
.unacceptableReasons
- A list that can be used to hold messages about why the configuration is not acceptable.public abstract org.forgerock.http.HttpApplication newHttpApplication() throws InitializationException
HttpApplication
configured and ready to be started.InitializationException
- If the application cannot be created.Copyright 2010-2022 ForgeRock AS.