public interface ServerConfiguration
| Modifier and Type | Method and Description |
|---|---|
Boolean |
checkForwardedHeaders()
Should the connector handle
X-Forwarded-* / X-Proxied-* headers?
Jetty: org.eclipse.jetty.server.ForwardedRequestCustomizer
Undertow: io.undertow.server.handlers.ProxyPeerAddressHandler
|
File[] |
getConfigurationFiles()
Returns the files to read external server configuration from.
|
Integer |
getConnectorIdleTimeout()
Gets the idle timeout (in milliseconds) to be used with server connectors.
|
String[] |
getConnectors()
Returns a list of connector names to be used by default (if a context doesn't specify own configuration).
|
File |
getContextConfigurationFile()
Returns the file to read external server context configuration from.
|
Integer |
getEventDispatcherThreadCount()
Internal Pax Web configuration option to specify number of threads to dispatch
WebElementEvent events. |
String |
getHttpConnectorName()
Gets the name to use for default connector/listener.
|
Integer |
getHttpPort()
Get a TCP port to use for HTTP protocol.
|
String |
getHttpSecureConnectorName()
Gets the name to use for secure connector/listener.
|
Integer |
getHttpSecurePort()
Get a TCP port to use for HTTPS protocol.
|
String[] |
getListeningAddresses()
Returns the addresses to bind connector/listener to.
|
Integer |
getServerIdleTimeout()
Gets the server thread idle timeout in milliseconds.
|
Integer |
getServerMaxThreads()
Gets maximum number of threads to use in server runtime.
|
Integer |
getServerMinThreads()
Gets minimum number of threads to use in server runtime.
|
String |
getServerThreadNamePrefix()
If target container allows, this method specifies a prefix for thread names to use.
Jetty:
org.eclipse.jetty.util.thread.QueuedThreadPool#setName(java.lang.String) (defaults
to "qtp" + hashcode).
Tomcat: org.apache.catalina.core.StandardThreadExecutor#setNamePrefix(java.lang.String)
|
String |
getTCCLType()
Returns the type of TCCL that should be set for service methods (
servlet (default) or
whiteboard). |
File |
getTemporaryDirectory()
Returns the temporary directory, directory that will be set as
ServletContext.TEMPDIR. |
String[] |
getVirtualHosts()
Returns a list of virtual hosts to be used by default (if a context doesn't specify own configuration).
|
Boolean |
isHttpEnabled()
Is default http connector/listener enabled? Uses
PaxWebConfig.PID_CFG_HTTP_ENABLED |
Boolean |
isHttpSecureEnabled()
Is default https connector/listener enabled? Uses
PaxWebConfig.PID_CFG_HTTP_SECURE_ENABLED |
Boolean |
isShowStacks()
Flag that specifies whether stack traces should be visible in error pages.
|
File getTemporaryDirectory()
ServletContext.TEMPDIR.File[] getConfigurationFiles()
JETTY_HOME/etc directory. Files must be in correct order (as enforced by
given runtime). It can also be single file location or even null to let the runtime be configured
using only PID configuration.File getContextConfigurationFile()
$CATALINA_HOME/conf/context.xmlInteger getHttpPort()
PaxWebConfig.PID_CFG_HTTP_PORT
property.Integer getHttpSecurePort()
PaxWebConfig.PID_CFG_HTTP_PORT_SECURE
property.Boolean isHttpEnabled()
PaxWebConfig.PID_CFG_HTTP_ENABLEDBoolean isHttpSecureEnabled()
PaxWebConfig.PID_CFG_HTTP_SECURE_ENABLEDString[] getListeningAddresses()
0.0.0.0.String getHttpConnectorName()
String getHttpSecureConnectorName()
Integer getConnectorIdleTimeout()
Gets the idle timeout (in milliseconds) to be used with server connectors. Idle timeout is like socket read timeout, but on server side.
org.eclipse.jetty.server.AbstractConnector#setIdleTimeout(long)org.apache.coyote.AbstractProtocol#setConnectionTimeout(int)Integer getServerIdleTimeout()
Gets the server thread idle timeout in milliseconds.
org.eclipse.jetty.util.thread.QueuedThreadPool#setIdleTimeout(int)org.apache.catalina.core.StandardThreadExecutor#setMaxIdleTime(int)Integer getServerMaxThreads()
Gets maximum number of threads to use in server runtime. This value MAY mean something different in different runtimes.
org.eclipse.jetty.util.thread.QueuedThreadPool#setMaxThreads(int)org.apache.catalina.core.StandardThreadExecutor#setMaxThreads(int)Integer getServerMinThreads()
Gets minimum number of threads to use in server runtime. This value MAY mean something different in different runtimes.
org.eclipse.jetty.util.thread.QueuedThreadPool#setMinThreads(int)org.apache.catalina.core.StandardThreadExecutor#setMinSpareThreads(int)String getServerThreadNamePrefix()
org.eclipse.jetty.util.thread.QueuedThreadPool#setName(java.lang.String) (defaults
to "qtp" + hashcode).org.apache.catalina.core.StandardThreadExecutor#setNamePrefix(java.lang.String)Boolean checkForwardedHeaders()
X-Forwarded-* / X-Proxied-* headers?org.eclipse.jetty.server.ForwardedRequestCustomizerio.undertow.server.handlers.ProxyPeerAddressHandlerInteger getEventDispatcherThreadCount()
WebElementEvent events.Boolean isShowStacks()
String[] getVirtualHosts()
String[] getConnectors()
String getTCCLType()
servlet (default) or
whiteboard).Copyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.