Interface HttpEndpointCfgClient
- All Superinterfaces:
ConfigurationClient
- All Known Subinterfaces:
AdminEndpointCfgClient
,AliveEndpointCfgClient
,CrestMetricsEndpointCfgClient
,HdapEndpointCfgClient
,HealthyEndpointCfgClient
,PrometheusEndpointCfgClient
,Rest2ldapEndpointCfgClient
The HTTP Endpoint is used to define HTTP endpoint.
-
Method Summary
Modifier and TypeMethodDescriptionManagedObjectDefinition<? extends HttpEndpointCfgClient,
? extends HttpEndpointCfg> Get the configuration definition associated with this HTTP Endpoint.Gets the "authorization-mechanism" property.Gets the "base-path" property.Gets the "java-class" property.Gets the "enabled" property.void
Sets the "authorization-mechanism" property.void
setBasePath
(ValueOrExpression<String> value) Sets the "base-path" property.void
setEnabled
(ValueOrExpression<Boolean> value) Sets the "enabled" property.void
setJavaClass
(ValueOrExpression<String> value) Sets the "java-class" property.Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
Method Details
-
definition
ManagedObjectDefinition<? extends HttpEndpointCfgClient,? extends HttpEndpointCfg> definition()Get the configuration definition associated with this HTTP Endpoint.- Specified by:
definition
in interfaceConfigurationClient
- Returns:
- Returns the configuration definition associated with this HTTP Endpoint.
-
getAuthorizationMechanism
Gets the "authorization-mechanism" property.The HTTP authorization mechanisms supported by this HTTP Endpoint.
- Returns:
- Returns the values of the "authorization-mechanism" property.
-
setAuthorizationMechanism
@MandatoryProperty void setAuthorizationMechanism(Collection<ValueOrExpression<String>> values) throws PropertyException Sets the "authorization-mechanism" property.The HTTP authorization mechanisms supported by this HTTP Endpoint.
- Parameters:
values
- The values of the "authorization-mechanism" property.- Throws:
PropertyException
- If one or more of the new values are invalid.
-
getBasePath
Gets the "base-path" property.All HTTP requests matching the base path or subordinate to it will be routed to the HTTP endpoint unless a more specific HTTP endpoint is found.
- Returns:
- Returns the value of the "base-path" property.
-
setBasePath
@MandatoryProperty void setBasePath(ValueOrExpression<String> value) throws PropertyException, PropertyException Sets the "base-path" property.All HTTP requests matching the base path or subordinate to it will be routed to the HTTP endpoint unless a more specific HTTP endpoint is found.
This property is read-only and can only be modified during creation of a HTTP Endpoint.
- Parameters:
value
- The value of the "base-path" property.- Throws:
PropertyException
- If the new value is invalid.PropertyException
- If this HTTP Endpoint is not being initialized.
-
isEnabled
Gets the "enabled" property.Indicates whether the HTTP Endpoint is enabled.
- Returns:
- Returns the value of the "enabled" property.
-
setEnabled
Sets the "enabled" property.Indicates whether the HTTP Endpoint is enabled.
- Parameters:
value
- The value of the "enabled" property.- Throws:
PropertyException
- If the new value is invalid.
-
getJavaClass
Gets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the HTTP Endpoint implementation.
- Returns:
- Returns the value of the "java-class" property.
-
setJavaClass
Sets the "java-class" property.Specifies the fully-qualified name of the Java class that provides the HTTP Endpoint implementation.
- Parameters:
value
- The value of the "java-class" property.- Throws:
PropertyException
- If the new value is invalid.
-