Interface HttpConnectionHandlerCfgClient
- All Superinterfaces:
ConfigurationClient
,ConnectionHandlerCfgClient
,NetConnectionHandlerCfgClient
HTTP Connection Handlers provide HTTP services built on top of the underlying LDAP directory.
-
Method Summary
Modifier and TypeMethodDescriptionManagedObjectDefinition
<? extends HttpConnectionHandlerCfgClient, ? extends HttpConnectionHandlerCfg> Get the configuration definition associated with this HTTP Connection Handler.Gets the "buffer-size" property.Gets the "java-class" property.Gets the "max-concurrent-ops-per-connection" property.Gets the "num-request-handlers" property.Gets the "keep-stats" property.void
setBufferSize
(ValueOrExpression<Long> value) Sets the "buffer-size" property.void
setJavaClass
(ValueOrExpression<String> value) Sets the "java-class" property.void
setKeepStats
(ValueOrExpression<Boolean> value) Sets the "keep-stats" property.void
Sets the "max-concurrent-ops-per-connection" property.void
Sets the "num-request-handlers" property.Methods inherited from interface org.forgerock.opendj.config.ConfigurationClient
commit, properties
Methods inherited from interface org.forgerock.opendj.server.config.client.ConnectionHandlerCfgClient
getAllowedClient, getDeniedClient, getRestrictedClient, getRestrictedClientConnectionLimit, isEnabled, setAllowedClient, setDeniedClient, setEnabled, setRestrictedClient, setRestrictedClientConnectionLimit
Methods inherited from interface org.forgerock.opendj.server.config.client.NetConnectionHandlerCfgClient
getAcceptBacklog, getAdvertisedListenAddress, getKeyManagerProvider, getListenAddress, getListenPort, getMaxBlockedWriteTimeLimit, getMaxRequestSize, getProxyProtocolAllowedClient, getSslCertNickname, getSslCipherSuite, getSslClientAuthPolicy, getSslProtocol, getTrustManagerProvider, isAllowLdapV2, isAllowStartTls, isAllowTcpReuseAddress, isProxyProtocolEnabled, isUseSsl, isUseTcpKeepAlive, isUseTcpNoDelay, setAcceptBacklog, setAdvertisedListenAddress, setAllowLdapV2, setAllowStartTls, setAllowTcpReuseAddress, setKeyManagerProvider, setListenAddress, setListenPort, setMaxBlockedWriteTimeLimit, setMaxRequestSize, setProxyProtocolAllowedClient, setProxyProtocolEnabled, setSslCertNickname, setSslCipherSuite, setSslClientAuthPolicy, setSslProtocol, setTrustManagerProvider, setUseSsl, setUseTcpKeepAlive, setUseTcpNoDelay
-
Method Details
-
definition
ManagedObjectDefinition<? extends HttpConnectionHandlerCfgClient,? extends HttpConnectionHandlerCfg> definition()Get the configuration definition associated with this HTTP Connection Handler.- Specified by:
definition
in interfaceConfigurationClient
- Specified by:
definition
in interfaceConnectionHandlerCfgClient
- Specified by:
definition
in interfaceNetConnectionHandlerCfgClient
- Returns:
- Returns the configuration definition associated with this HTTP Connection Handler.
-
getBufferSize
ValueOrExpression<Long> getBufferSize()Gets the "buffer-size" property.Specifies the size in bytes of the HTTP response message write buffer.
This property specifies write buffer size allocated by the server for each client connection and used to buffer HTTP response messages data when writing.
Default value:
4096 bytes
- Returns:
- Returns the value of the "buffer-size" property.
-
setBufferSize
Sets the "buffer-size" property.Specifies the size in bytes of the HTTP response message write buffer.
This property specifies write buffer size allocated by the server for each client connection and used to buffer HTTP response messages data when writing.
- Parameters:
value
- The value of the "buffer-size" 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 Connection Handler implementation.
Default value:
org.opends.server.protocols.http.HttpConnectionHandler
- Specified by:
getJavaClass
in interfaceConnectionHandlerCfgClient
- Specified by:
getJavaClass
in interfaceNetConnectionHandlerCfgClient
- 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 Connection Handler implementation.
- Specified by:
setJavaClass
in interfaceConnectionHandlerCfgClient
- Specified by:
setJavaClass
in interfaceNetConnectionHandlerCfgClient
- Parameters:
value
- The value of the "java-class" property.- Throws:
PropertyException
- If the new value is invalid.
-
isKeepStats
ValueOrExpression<Boolean> isKeepStats()Gets the "keep-stats" property.Indicates whether the HTTP Connection Handler should keep statistics.
If enabled, the HTTP Connection Handler maintains statistics about the number and types of operations requested over HTTP and the amount of data sent and received.
Default value:
true
- Returns:
- Returns the value of the "keep-stats" property.
-
setKeepStats
Sets the "keep-stats" property.Indicates whether the HTTP Connection Handler should keep statistics.
If enabled, the HTTP Connection Handler maintains statistics about the number and types of operations requested over HTTP and the amount of data sent and received.
- Parameters:
value
- The value of the "keep-stats" property.- Throws:
PropertyException
- If the new value is invalid.
-
getMaxConcurrentOpsPerConnection
ValueOrExpression<Integer> getMaxConcurrentOpsPerConnection()Gets the "max-concurrent-ops-per-connection" property.Specifies the maximum number of internal operations that each HTTP client connection can execute concurrently.
This property allow to limit the impact that each HTTP request can have on the whole server by limiting the number of internal operations that each HTTP request can execute concurrently. A value of 0 means that no limit is enforced.
- Returns:
- Returns the value of the "max-concurrent-ops-per-connection" property.
-
setMaxConcurrentOpsPerConnection
Sets the "max-concurrent-ops-per-connection" property.Specifies the maximum number of internal operations that each HTTP client connection can execute concurrently.
This property allow to limit the impact that each HTTP request can have on the whole server by limiting the number of internal operations that each HTTP request can execute concurrently. A value of 0 means that no limit is enforced.
- Parameters:
value
- The value of the "max-concurrent-ops-per-connection" property.- Throws:
PropertyException
- If the new value is invalid.
-
getNumRequestHandlers
ValueOrExpression<Integer> getNumRequestHandlers()Gets the "num-request-handlers" property.Specifies the number of request handlers that are used to read requests from clients.
The HTTP Connection Handler uses one thread to accept new connections from clients, but uses one or more additional threads to read requests from existing client connections. This ensures that new requests are read efficiently and that the connection handler itself does not become a bottleneck when the server is under heavy load from many clients at the same time.
- Returns:
- Returns the value of the "num-request-handlers" property.
-
setNumRequestHandlers
Sets the "num-request-handlers" property.Specifies the number of request handlers that are used to read requests from clients.
The HTTP Connection Handler uses one thread to accept new connections from clients, but uses one or more additional threads to read requests from existing client connections. This ensures that new requests are read efficiently and that the connection handler itself does not become a bottleneck when the server is under heavy load from many clients at the same time.
- Parameters:
value
- The value of the "num-request-handlers" property.- Throws:
PropertyException
- If the new value is invalid.
-