public class TcServer extends AbstractServer
| Modifier and Type | Field and Description |
|---|---|
static String |
ASYNC_TIMEOUT_KEY |
static String |
CONN_ACCEPT_QUEUE_SIZE |
static String |
CONN_ALGORITHM |
static String |
CONN_CIPHERS |
static String |
CONN_CLIENT_AUTH |
static String |
CONN_ENABLED_PROTOCOLS |
static String |
CONN_HOST
Connector property names
|
static String |
CONN_KEY_PASS |
static String |
CONN_KEYSTORE_FILE |
static String |
CONN_KEYSTORE_PASS |
static String |
CONN_KEYSTORE_PROVIDER |
static String |
CONN_KEYSTORE_TYPE |
static String |
CONN_MAX_IDLE_TIME |
static String |
CONN_NUM_ACCEPTORS |
static String |
CONN_SSL_ENABLED |
static String |
CONN_SSL_IMPLEMENTATION |
static String |
CONN_TRUSTSTORE_FILE |
static String |
CONN_TRUSTSTORE_PASS |
static String |
CONN_TRUSTSTORE_PROVIDER |
static String |
CONN_TRUSTSTORE_TYPE |
static String |
SERVER |
_endpoints, _filters, _lifecycleManager, _serverConfig, _services, DEFAULT_PORT, NO_FILTERS, NO_SERVICES| Constructor and Description |
|---|
TcServer() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.catalina.Context |
getContext() |
org.apache.catalina.startup.Tomcat |
getServer()
Returns the Tomcat server implementation.
|
void |
join()
Blocks the current thread until the server stops.
|
protected Service |
prepareDefaultServlet(StaticContentService staticSrv)
Prepares default servlet for serving static content.
|
void |
setAsyncTimeout(long asyncTimeout)
Set asynchronous timeout in millis
|
void |
setThreadPool(org.apache.catalina.Executor threadPool)
Set thread pool to be used by this server for handling
HTTP connections.
|
void |
start()
Start the server.
|
void |
stop()
Stop the server.
|
addLifecycleListener, applyServerConfigurator, getDisabledSSLCiphers, getEnabledSSLCiphers, prepareStaticContentServices, setEnabledSSLCiphers, setEndpoints, setFilters, setLifecycleListeners, setServerConfigurator, setServices, shutdown, shutdownNow, validateArraypublic static final String CONN_HOST
public static final String CONN_NUM_ACCEPTORS
public static final String CONN_ACCEPT_QUEUE_SIZE
public static final String CONN_MAX_IDLE_TIME
public static final String CONN_SSL_ENABLED
public static final String CONN_KEYSTORE_TYPE
public static final String CONN_KEYSTORE_FILE
public static final String CONN_KEYSTORE_PASS
public static final String CONN_KEYSTORE_PROVIDER
public static final String CONN_KEY_PASS
public static final String CONN_TRUSTSTORE_TYPE
public static final String CONN_TRUSTSTORE_FILE
public static final String CONN_TRUSTSTORE_PASS
public static final String CONN_TRUSTSTORE_PROVIDER
public static final String CONN_CLIENT_AUTH
public static final String CONN_ALGORITHM
public static final String CONN_CIPHERS
public static final String CONN_SSL_IMPLEMENTATION
public static final String CONN_ENABLED_PROTOCOLS
public static final String SERVER
public static final String ASYNC_TIMEOUT_KEY
public void setThreadPool(org.apache.catalina.Executor threadPool)
threadPool - the thread pool to usepublic void setAsyncTimeout(long asyncTimeout)
asyncTimeout - asynchronous timeoutpublic void start()
throws Exception
ServerExceptionpublic void stop()
throws Exception
ServerExceptionpublic void join()
throws Exception
ServerExceptionpublic org.apache.catalina.startup.Tomcat getServer()
public org.apache.catalina.Context getContext()
protected Service prepareDefaultServlet(StaticContentService staticSrv)
AbstractServerprepareDefaultServlet in class AbstractServerstaticSrv - a static content service definitionCopyright © 2022. All rights reserved.