Interface HTTPEndpointCfgClient
-
- All Superinterfaces:
ConfigurationClient
- All Known Subinterfaces:
AdminEndpointCfgClient,Rest2ldapEndpointCfgClient
public interface HTTPEndpointCfgClient extends ConfigurationClient
A client-side interface for reading and modifying HTTP Endpoint settings.The HTTP Endpoint is used to define HTTP endpoint.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedObjectDefinition<? extends HTTPEndpointCfgClient,? extends HTTPEndpointCfg>definition()Get the configuration definition associated with this HTTP Endpoint.SortedSet<String>getAuthorizationMechanism()Gets the "authorization-mechanism" property.StringgetBasePath()Gets the "base-path" property.StringgetJavaClass()Gets the "java-class" property.BooleanisEnabled()Gets the "enabled" property.voidsetAuthorizationMechanism(Collection<String> values)Sets the "authorization-mechanism" property.voidsetBasePath(String value)Sets the "base-path" property.voidsetEnabled(boolean value)Sets the "enabled" property.voidsetJavaClass(String value)Sets the "java-class" property.-
Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
-
-
-
-
Method Detail
-
definition
ManagedObjectDefinition<? extends HTTPEndpointCfgClient,? extends HTTPEndpointCfg> definition()
Get the configuration definition associated with this HTTP Endpoint.- Specified by:
definitionin interfaceConfigurationClient- Returns:
- Returns the configuration definition associated with this HTTP Endpoint.
-
getAuthorizationMechanism
SortedSet<String> 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
void setAuthorizationMechanism(Collection<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
String 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
void setBasePath(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
Boolean isEnabled()
Gets the "enabled" property.Indicates whether the HTTP Endpoint is enabled.
- Returns:
- Returns the value of the "enabled" property.
-
setEnabled
void setEnabled(boolean value) throws PropertyExceptionSets 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
String 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
void setJavaClass(String value) throws PropertyException
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.
-
-