Package org.apache.flink.runtime.rest
Class RestServerEndpointConfiguration
java.lang.Object
org.apache.flink.runtime.rest.RestServerEndpointConfiguration
A configuration object for
RestServerEndpoints.-
Method Summary
Modifier and TypeMethodDescriptionfromConfiguration(org.apache.flink.configuration.Configuration config) Creates and returns a newRestServerEndpointConfigurationfrom the givenConfiguration.intReturns the max content length that the REST server endpoint could handle.Response headers that should be added to every HTTP response.Returns the address that the REST server endpoint should bind itself to.Returns the port range that the REST server endpoint should listen on.Returns theSSLEnginethat the REST server endpoint should use.Returns the directory used to temporarily store multipart/form-data uploads.
-
Method Details
-
getRestAddress
- See Also:
-
RestOptions.ADDRESS
-
getRestBindAddress
Returns the address that the REST server endpoint should bind itself to.- Returns:
- address that the REST server endpoint should bind itself to
-
getRestBindPortRange
Returns the port range that the REST server endpoint should listen on.- Returns:
- port range that the REST server endpoint should listen on
-
getSslHandlerFactory
Returns theSSLEnginethat the REST server endpoint should use.- Returns:
- SSLEngine that the REST server endpoint should use, or null if SSL was disabled
-
getUploadDir
Returns the directory used to temporarily store multipart/form-data uploads. -
getMaxContentLength
public int getMaxContentLength()Returns the max content length that the REST server endpoint could handle.- Returns:
- max content length that the REST server endpoint could handle
-
getResponseHeaders
Response headers that should be added to every HTTP response. -
fromConfiguration
public static RestServerEndpointConfiguration fromConfiguration(org.apache.flink.configuration.Configuration config) throws org.apache.flink.util.ConfigurationException Creates and returns a newRestServerEndpointConfigurationfrom the givenConfiguration.- Parameters:
config- configuration from which the REST server endpoint configuration should be created from- Returns:
- REST server endpoint configuration
- Throws:
org.apache.flink.util.ConfigurationException- if SSL was configured incorrectly
-