T
- The concrete standalone implementation (to make the builder
pattern work correctly during compilation)public interface Standalone<T extends Standalone> extends Console<T>
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTEXT_PATH |
static String |
DEFAULT_DEV_NINJA_SSL_KEYSTORE_PASSWORD |
static String |
DEFAULT_DEV_NINJA_SSL_KEYSTORE_URI |
static String |
DEFAULT_DEV_NINJA_SSL_TRUSTSTORE_PASSWORD |
static String |
DEFAULT_DEV_NINJA_SSL_TRUSTSTORE_URI |
static String |
DEFAULT_HOST |
static Long |
DEFAULT_IDLE_TIMEOUT |
static Integer |
DEFAULT_PORT |
static Integer |
DEFAULT_SSL_PORT |
static String |
DEFAULT_STANDALONE_CLASS |
static String |
KEY_NINJA_CONTEXT_PATH |
static String |
KEY_NINJA_HOST |
static String |
KEY_NINJA_IDLE_TIMEOUT |
static String |
KEY_NINJA_PORT |
static String |
KEY_NINJA_SSL_KEYSTORE_PASSWORD |
static String |
KEY_NINJA_SSL_KEYSTORE_URI |
static String |
KEY_NINJA_SSL_PORT |
static String |
KEY_NINJA_SSL_TRUSTSTORE_PASSWORD |
static String |
KEY_NINJA_SSL_TRUSTSTORE_URI |
static String |
KEY_NINJA_STANDALONE_CLASS |
Modifier and Type | Method and Description |
---|---|
T |
contextPath(String contextPath)
Sets the "context path" of the Ninja application.
|
List<String> |
getBaseUrls()
Get the urls for the application that is configured to start.
|
String |
getContextPath() |
String |
getHost() |
Long |
getIdleTimeout() |
Integer |
getPort() |
List<String> |
getServerUrls()
Get the urls for the servers that are configured to start.
|
String |
getSslKeystorePassword() |
URI |
getSslKeystoreUri() |
Integer |
getSslPort() |
String |
getSslTruststorePassword() |
URI |
getSslTruststoreUri() |
T |
host(String host) |
T |
idleTimeout(long idleTimeout) |
boolean |
isPortEnabled()
Tests if the clear text HTTP port is enabled.
|
boolean |
isSslPortEnabled()
Tests if the SSL HTTP port is enabled.
|
T |
join()
Joins the underlying server to wait until its finished.
|
T |
port(int port) |
void |
run()
Configure, start, add shutdown hook, and join.
|
T |
sslKeystorePassword(String keystorePassword) |
T |
sslKeystoreUri(URI keystoreUri) |
T |
sslPort(int sslPort) |
T |
sslTruststorePassword(String truststorePassword) |
T |
sslTruststoreUri(URI truststoreUri) |
configure, externalConfigurationPath, getExternalConfigurationPath, getInjector, getName, getNinjaMode, getNinjaProperties, name, ninjaMode, shutdown, start
static final String KEY_NINJA_STANDALONE_CLASS
static final String KEY_NINJA_CONTEXT_PATH
static final String KEY_NINJA_HOST
static final String KEY_NINJA_IDLE_TIMEOUT
static final String KEY_NINJA_PORT
static final String KEY_NINJA_SSL_PORT
static final String KEY_NINJA_SSL_KEYSTORE_URI
static final String KEY_NINJA_SSL_KEYSTORE_PASSWORD
static final String KEY_NINJA_SSL_TRUSTSTORE_URI
static final String KEY_NINJA_SSL_TRUSTSTORE_PASSWORD
static final String DEFAULT_STANDALONE_CLASS
static final String DEFAULT_HOST
static final Integer DEFAULT_PORT
static final Long DEFAULT_IDLE_TIMEOUT
static final String DEFAULT_CONTEXT_PATH
static final Integer DEFAULT_SSL_PORT
static final String DEFAULT_DEV_NINJA_SSL_KEYSTORE_URI
static final String DEFAULT_DEV_NINJA_SSL_KEYSTORE_PASSWORD
static final String DEFAULT_DEV_NINJA_SSL_TRUSTSTORE_URI
static final String DEFAULT_DEV_NINJA_SSL_TRUSTSTORE_PASSWORD
void run()
T join() throws Exception
Exception
- Thrown if an exception occurs while waitingString getHost()
Integer getPort()
T port(int port)
String getContextPath()
T contextPath(String contextPath)
contextPath
- The context path such as "/mycontext"IllegalArgumentException
- Thrown if the context value is not validT idleTimeout(long idleTimeout)
Long getIdleTimeout()
Integer getSslPort()
T sslPort(int sslPort)
URI getSslKeystoreUri()
String getSslKeystorePassword()
URI getSslTruststoreUri()
String getSslTruststorePassword()
List<String> getServerUrls()
getServerUrls()
List<String> getBaseUrls()
getBaseUrls()
boolean isPortEnabled()
boolean isSslPortEnabled()
Copyright © 2019 ninjaframework. All rights reserved.