Interface HttpInterfaceCommonPolicy
-
public interface HttpInterfaceCommonPolicyPolicy information for the HTTP management interface that is common across both standalone and domain mode.- Author:
- Darran Lofthouse
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHttpInterfaceCommonPolicy.Header
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<String>getAllowedOrigins()Get the list of origins that the server should accept requests from, if none set then all forms of cross origin resource sharing are disabled.intgetBacklog()Get the maximum number of pending connections that can be queued before the server starts to reject connections.intgetConnectionHighWater()Get the maximum number of connections that can be open before the interface stops accepting new connections.intgetConnectionLowWater()Gets the connection count that must be reached before the server starts to accept new connections again.org.xnio.OptionMapgetConnectorOptions()Get the connector options based on the current configuration.Map<String,List<HttpInterfaceCommonPolicy.Header>>getConstantHeaders()A set of HTTP headers that should be set on each response based on matching the key of the map as being a prefix of the requested path.StringgetHttpAuthenticationFactory()Get the name of the HTTP authentication factory to use to secure the interface for normal HTTP requests.intgetNoRequestTimeoutMs()Get the maximum time in milliseconds that a connection can be idle without receiving a HTTP request before it is closed.StringgetSaslAuthenticationFactory()Get the name of the SASL authentication factory to use to secure the interface where HTTP upgrade is used.StringgetSSLContext()Get the name of the SSLContext to use to enable SSL for this management interface.booleanisConsoleEnabled()Is the management console enabled, is set tofalsethe console should not be made available.booleanisHttpUpgradeEnabled()Is upgrading to a Remoting connection over the HTTP interface enabled.
-
-
-
Method Detail
-
getHttpAuthenticationFactory
String getHttpAuthenticationFactory()
Get the name of the HTTP authentication factory to use to secure the interface for normal HTTP requests.- Returns:
- The name of the SASL authentication factory to use to secure the interface for normal HTTP requests.
-
getSSLContext
String getSSLContext()
Get the name of the SSLContext to use to enable SSL for this management interface.- Returns:
- the name of the SSLContext to use to enable SSL for this management interface.
-
getSaslAuthenticationFactory
String getSaslAuthenticationFactory()
Get the name of the SASL authentication factory to use to secure the interface where HTTP upgrade is used.- Returns:
- The name of the SASL authentication factory to use to secure the interface where HTTP upgrade is used.
-
isConsoleEnabled
boolean isConsoleEnabled()
Is the management console enabled, is set tofalsethe console should not be made available.- Returns:
trueif the management console should be made available,falseotherwise.
-
isHttpUpgradeEnabled
boolean isHttpUpgradeEnabled()
Is upgrading to a Remoting connection over the HTTP interface enabled.- Returns:
trueif HTTP Upgrade to the native protocol is enabled,falseotherwise.
-
getConnectorOptions
org.xnio.OptionMap getConnectorOptions()
Get the connector options based on the current configuration.- Returns:
- the connector options based on the current configuration.
-
getAllowedOrigins
List<String> getAllowedOrigins()
Get the list of origins that the server should accept requests from, if none set then all forms of cross origin resource sharing are disabled. An emptyListornullboth signal that cross origin resource sharing should be disabled.- Returns:
- The list of origins that the server should accept requests from.
-
getConstantHeaders
Map<String,List<HttpInterfaceCommonPolicy.Header>> getConstantHeaders()
A set of HTTP headers that should be set on each response based on matching the key of the map as being a prefix of the requested path. A prefix is inclusive of an exact match.- Returns:
- A
Mapof the constant headers to be set on each response with the key being used as the prefix.
-
getBacklog
int getBacklog()
Get the maximum number of pending connections that can be queued before the server starts to reject connections.- Returns:
- the maximum number of pending connections that can be queued before the server starts to reject connections.
-
getNoRequestTimeoutMs
int getNoRequestTimeoutMs()
Get the maximum time in milliseconds that a connection can be idle without receiving a HTTP request before it is closed.- Returns:
- the maximum time in milliseconds that a connection can be idle without receiving a HTTP request before it is closed.
-
getConnectionHighWater
int getConnectionHighWater()
Get the maximum number of connections that can be open before the interface stops accepting new connections.- Returns:
- the maximum number of connections that can be open before the interface stops accepting new connections.
-
getConnectionLowWater
int getConnectionLowWater()
Gets the connection count that must be reached before the server starts to accept new connections again.- Returns:
- the connection count that must be reached before the server starts to accept new connections again.
-
-