public final class LaunchConfigs.Property extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADDRESS
The address to bind to.
|
static String |
COMPRESS_RESPONSES
Whether to compress responses.
|
static String |
COMPRESSION_MIME_TYPE_BLACK_LIST
The comma separated list of response mime types which should not be compressed.
|
static String |
COMPRESSION_MIME_TYPE_WHITE_LIST
The comma separated list of response mime types which should be compressed.
|
static String |
COMPRESSION_MIN_SIZE
The minimum size at which responses should be compressed, in bytes.
|
static String |
CONFIGURATION_CLASS
The full qualified classname of the configuration class (optional).
|
static String |
CONFIGURATION_FACTORY
The full qualified classname of the configuration factory (optional).
|
static String |
CONFIGURATION_FILE
The path to the desired configuration file.
|
static String |
DEVELOPMENT
Whether to have the application in development mode.
|
static String |
HANDLER_FACTORY
The full qualified classname of the handler factory (required).
|
static String |
INDEX_FILES
The comma separated list of file names of files that can be served in place of a directory.
|
static String |
MAX_CONTENT_LENGTH
The max content length.
|
static String |
PORT
The port to listen for requests on.
|
static String |
PUBLIC_ADDRESS
The public address of the site.
|
static String |
SSL_KEYSTORE_FILE
The absolute file path, URI or classpath location of the SSL keystore file.
|
static String |
SSL_KEYSTORE_PASSWORD
The password for the SSL keystore file.
|
static String |
THREADS
The number of worker threads to use.
|
static String |
TIME_RESPONSES
Whether to time responses.
|
public static final String PORT
It is also possible to set this property via an environment variable LaunchConfigs.Environment.PORT
.
This makes deploying on cloud platforms such as Heroku more convenient.
If the environment variable and the system property are set, the system property takes precedence.
Defaults to LaunchConfig.DEFAULT_PORT
.
Value: "port"
LaunchConfig.getPort()
,
Constant Field Valuespublic static final String ADDRESS
null
(all addresses). If the value is not null
, it will converted to an Inet Address via InetAddress.getByName(String)
.
Value: "address" - (inet address)
LaunchConfig.getAddress()
,
Constant Field Valuespublic static final String DEVELOPMENT
If the script changes at runtime, there will be reloads. In this mode diagnostics and reloading are treated more important than performance and security.
Defaults to false
.
Value: "development" - (boolean)
public static final String HANDLER_FACTORY
This class MUST implement HandlerFactory
and have a public no-arg constructor.
Value: "handlerFactory" - (string)
public static final String CONFIGURATION_FACTORY
This class MUST implement ratpack.configuration.ConfigurationFactory
and have a public no-arg constructor.
ratpack-configuration
module.public static final String CONFIGURATION_CLASS
This class MUST extend ratpack.configuration.Configuration
and have a public no-arg constructor.
ratpack-configuration
module.public static final String CONFIGURATION_FILE
This class MUST implement Value: "configurationFile" - (string)
This property is used by the ratpack-configuration
module.
public static final String THREADS
Value: "threads" - (int)
LaunchConfig.getThreads()
,
Constant Field Valuespublic static final String PUBLIC_ADDRESS
If the value is not null
, it will converted to an URL.
Value: "publicAddress" - (url)
public static final String INDEX_FILES
If the value is not null
, it will be converted to a string list by splitting on ",".
Value: "indexFiles" - (comma separated string list)
public static final String SSL_KEYSTORE_FILE
public static final String SSL_KEYSTORE_PASSWORD
public static final String MAX_CONTENT_LENGTH
public static final String TIME_RESPONSES
The value of this property will be converted to a boolean by Boolean.valueOf(String)
.
public static final String COMPRESS_RESPONSES
The value of this property will be converted to a boolean by Boolean.valueOf(String)
.
public static final String COMPRESSION_MIN_SIZE
public static final String COMPRESSION_MIME_TYPE_WHITE_LIST
If the value is not null
, it will be converted to a string list by splitting on ",".
Value: "compression.mimeType.whiteList" - (comma separated string list)
public static final String COMPRESSION_MIME_TYPE_BLACK_LIST
If the value is not null
, it will be converted to a string list by splitting on ",".
Value: "compression.mimeType.blackList" - (comma separated string list)