Package org.apache.flink.runtime.rest
Class RestServerEndpointConfiguration
- java.lang.Object
-
- org.apache.flink.runtime.rest.RestServerEndpointConfiguration
-
public final class RestServerEndpointConfiguration extends Object
A configuration object forRestServerEndpoints.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RestServerEndpointConfigurationfromConfiguration(org.apache.flink.configuration.Configuration config)Creates and returns a newRestServerEndpointConfigurationfrom the givenConfiguration.intgetMaxContentLength()Returns the max content length that the REST server endpoint could handle.Map<String,String>getResponseHeaders()Response headers that should be added to every HTTP response.StringgetRestAddress()StringgetRestBindAddress()Returns the address that the REST server endpoint should bind itself to.StringgetRestBindPortRange()Returns the port range that the REST server endpoint should listen on.SSLHandlerFactorygetSslHandlerFactory()Returns theSSLEnginethat the REST server endpoint should use.PathgetUploadDir()Returns the directory used to temporarily store multipart/form-data uploads.
-
-
-
Method Detail
-
getRestAddress
public String getRestAddress()
- See Also:
RestOptions.ADDRESS
-
getRestBindAddress
public String 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
public String 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
@Nullable public SSLHandlerFactory 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
public Path 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
public Map<String,String> 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
-
-