public final class RestServerEndpointConfiguration extends Object
RestServerEndpoint
s.Modifier and Type | Method and Description |
---|---|
static RestServerEndpointConfiguration |
fromConfiguration(Configuration config)
Creates and returns a new
RestServerEndpointConfiguration from the given Configuration . |
int |
getMaxContentLength()
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.
|
String |
getRestAddress() |
String |
getRestBindAddress()
Returns the address that the REST server endpoint should bind itself to.
|
String |
getRestBindPortRange()
Returns the port range that the REST server endpoint should listen on.
|
SSLHandlerFactory |
getSslHandlerFactory()
Returns the
SSLEngine that the REST server endpoint should use. |
Path |
getUploadDir()
Returns the directory used to temporarily store multipart/form-data uploads.
|
public String getRestAddress()
RestOptions.ADDRESS
public String getRestBindAddress()
public String getRestBindPortRange()
@Nullable public SSLHandlerFactory getSslHandlerFactory()
SSLEngine
that the REST server endpoint should use.public Path getUploadDir()
public int getMaxContentLength()
public Map<String,String> getResponseHeaders()
public static RestServerEndpointConfiguration fromConfiguration(Configuration config) throws ConfigurationException
RestServerEndpointConfiguration
from the given Configuration
.config
- configuration from which the REST server endpoint configuration should be created fromConfigurationException
- if SSL was configured incorrectlyCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.