public interface ISpincastConfig
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getContentTypesToSkipGziping()
Even if gziping of the response is enabled, those Content-Types
still won't be gzipped.
|
Locale |
getDefaultLocale()
The default Locale to use if no other Locale can be found
as a "best match", for the current request.
|
String |
getEnvironmentName()
Returns the name of the environment.
|
int |
getHttpServerPort()
The HTTP (unsecure) port on which the server will listen on.
|
String |
getHttpsKeyStoreKeypass()
The "keypass" of the
KeyStore, for SSL. |
String |
getHttpsKeyStorePath()
The path to the
KeyStore, for SSL. |
String |
getHttpsKeyStoreStorePass()
The "storepass" of the
KeyStore, for SSL. |
String |
getHttpsKeyStoreType()
The type of the
KeyStore, for SSL. |
int |
getHttpsServerPort()
The HTTPS (secure) port on which the server will listen on.
|
int |
getRouteForwardingMaxNumber()
The maximum number of time a request can be forwarded to another
route.
|
String |
getServerHost()
The host/IP on which the server will listen to.
|
long |
getServerMaxRequestBodyBytes()
Maximum number of bytes a request's body can have.
|
File |
getSpincastWritableDir()
A directory where generated files and temporary files
can be written by Spincast.
|
boolean |
isDebugEnabled()
Let this to
true on development environment,
where errors can be publicly displayed, where cache can
be disabled, etc. |
boolean |
isRoutesCaseSensitive()
Are the URLS case-sensitive or not, during the route matching
process?
The default value is
false. |
boolean isDebugEnabled()
true on development environment,
where errors can be publicly displayed, where cache can
be disabled, etc. In production set it to false
The default value is true.true if debug mode is enabled.String getServerHost()
0.0.0.0.int getHttpServerPort()
44419 so HTTP
is enabled by default.int getHttpsServerPort()
-1 so HTTPS
is not enabled by default.String getHttpsKeyStorePath()
KeyStore, for SSL. Can be a
classpath path or and absolute path.
The classpath will be checked first.
Only used if getHttpsServerPort() returns a port > 0.
The default value is null.KeyStoreString getHttpsKeyStoreType()
KeyStore, for SSL.
For example: "JKS".
Only used if getHttpsServerPort() returns a port > 0.
The default value is null.KeyStoreString getHttpsKeyStoreStorePass()
KeyStore, for SSL.
Only used if getHttpsServerPort() returns a port > 0.
The default value is null.KeyStoreString getHttpsKeyStoreKeypass()
KeyStore, for SSL.
Only used if getHttpsServerPort() returns a port > 0.
The default value is null.KeyStoreboolean isRoutesCaseSensitive()
false.String getEnvironmentName()
local.long getServerMaxRequestBodyBytes()
104857600 (100MB).List<String> getContentTypesToSkipGziping()
File getSpincastWritableDir()
System.getProperty("java.io.tmpdir")
to create a temporary directory.Locale getDefaultLocale()
Locale.US.int getRouteForwardingMaxNumber()
2.Copyright © 2016. All rights reserved.