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,Rest2LdapEndpoint
public abstract class HttpEndpoint<C extends HTTPEndpointCfg> extends Object
Endpoint attach anHttpApplicationto an URI.
-
-
Field Summary
Fields Modifier and Type Field Description protected CconfigurationConfiguration of this endpoint.protected ServerContextserverContextContext of this LDAP server.
-
Constructor Summary
Constructors Constructor Description HttpEndpoint(C configuration, ServerContext serverContext)Create a newHttpEndpointwith the given configuration.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanisConfigurationValid(List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)Check that the configuration of thisHttpEndpointis valid.abstract org.forgerock.http.HttpApplicationnewHttpApplication()Create a new HttpApplication.
-
-
-
Field Detail
-
configuration
protected final C extends HTTPEndpointCfg configuration
Configuration of this endpoint.
-
serverContext
protected final ServerContext serverContext
Context of this LDAP server.
-
-
Constructor Detail
-
HttpEndpoint
public HttpEndpoint(C configuration, ServerContext serverContext)
Create a newHttpEndpointwith the given configuration.- Parameters:
configuration- Configuration of thisHttpEndpointserverContext- Context of this LDAP server
-
-
Method Detail
-
isConfigurationValid
public boolean isConfigurationValid(List<org.forgerock.i18n.LocalizableMessage> unacceptableReasons)
Check that the configuration of thisHttpEndpointis 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
HttpApplicationconfigured and ready to be started. - Throws:
InitializationException- If the application cannot be created.
-
-