Class ApplicationServer
java.lang.Object
is.galia.ApplicationServer
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the instance with arbitrary defaults.ApplicationServer
(Configuration config) Initializes the instance with defaults from aConfiguration
object. -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
boolean
boolean
boolean
boolean
void
setAcceptQueueLimit
(int size) void
setHTTPEnabled
(boolean enabled) void
setHTTPHost
(String host) void
setHTTPPort
(int port) void
setHTTPSEnabled
(boolean enabled) void
setHTTPSHost
(String host) void
setHTTPSKeyPassword
(String password) void
setHTTPSKeyStorePassword
(String password) void
setHTTPSKeyStorePath
(String path) void
setHTTPSKeyStoreType
(String type) void
setHTTPSPort
(int port) void
setIdleTimeout
(Duration timeout) void
setMaxThreads
(int maxThreads) void
setMinThreads
(int minThreads) void
start()
Starts the HTTP and/or HTTPS servers.void
stop()
-
Constructor Details
-
ApplicationServer
public ApplicationServer()Initializes the instance with arbitrary defaults. -
ApplicationServer
Initializes the instance with defaults from aConfiguration
object.- Parameters:
config
- Instance from which to obtain settings.
-
-
Method Details
-
getAcceptQueueLimit
public int getAcceptQueueLimit() -
getHTTPHost
-
getHTTPPort
public int getHTTPPort() -
getHTTPSHost
-
getHTTPSKeyPassword
-
getHTTPSKeyStorePassword
-
getHTTPSKeyStorePath
-
getHTTPSKeyStoreType
-
getHTTPSPort
public int getHTTPSPort() -
getIdleTimeout
-
getMaxThreads
public int getMaxThreads() -
getMinThreads
public int getMinThreads() -
isHTTPEnabled
public boolean isHTTPEnabled() -
isHTTPSEnabled
public boolean isHTTPSEnabled() -
isStarted
public boolean isStarted() -
isStopped
public boolean isStopped() -
setAcceptQueueLimit
public void setAcceptQueueLimit(int size) -
setHTTPEnabled
public void setHTTPEnabled(boolean enabled) -
setHTTPHost
-
setHTTPPort
public void setHTTPPort(int port) -
setHTTPSEnabled
public void setHTTPSEnabled(boolean enabled) -
setHTTPSHost
-
setHTTPSKeyPassword
-
setHTTPSKeyStorePassword
-
setHTTPSKeyStorePath
-
setHTTPSKeyStoreType
-
setHTTPSPort
public void setHTTPSPort(int port) -
setIdleTimeout
-
setMaxThreads
public void setMaxThreads(int maxThreads) -
setMinThreads
public void setMinThreads(int minThreads) -
start
-
stop
-