public class WebServer extends GenericWebServer
In particular, Jetty will be started using keystore info from p2j config that is already in memory.
| Modifier and Type | Class and Description |
|---|---|
static class |
WebServer.WebContext
Holds the web content resource description.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
HTTPS_PORT
HTTPS default port for listening.
|
private static WebServer |
instance
Singleton instance of this class.
|
private static CentralLogger |
LOG
Anonymous log instance.
|
private static java.lang.String |
MAX_OUTPUT_AGGREGATION_SIZE_PARAM
The "maxOutputAggregationSize" parameter name
|
private static java.lang.String |
MAX_OUTPUT_BUFFER_SIZE_PARAM
The "maxOutputBufferSize" parameter name
|
private static java.lang.String |
MAX_REQUEST_HEADER_SIZE_PARAM
The "maxRequestHeaderSize" parameter name
|
private static java.lang.String |
MAX_RESPONSE_HEADER_SIZE_PARAM
The "maxResponseHeaderSize" parameter name
|
private int |
port
Server port in use.
|
private static java.lang.String |
WEB_SERVER_MAX_IDLE_TIMEOUT_PARAM
The "webServerMaxIdleTimeout" parameter name
|
CONNECTION_RESTORED_MESSAGE, CONNECTION_TIMEOUT, DELAY_BETWEEN_CONNECT_TRIES, DELAY_BETWEEN_PING_TRIES, ENABLE_DEBUG_LOGGING, INFINITE_TIMEOUT, MAX_BINARY_MESSAGE_SIZE, MAX_LOST_PINGS, MAX_TEXT_MESSAGE_SIZE, MAX_WEB_SOCKET_IDLE_TIMEOUT, OUTPUT_AGGREGATION_SIZE, OUTPUT_BUFFER_SIZE, PING_PONG_INTERVAL, REQUEST_HEADER_SIZE, RESPONSE_HEADER_SIZE, SERVER_UNAVAILABLE_MESSAGE, TRY_TO_CONNECT_MESSAGE, WATCH_DOG_TIMEOUT| Modifier | Constructor and Description |
|---|---|
private |
WebServer(org.eclipse.jetty.server.Handler[] handlers)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getURL()
Get the URL on which this server is running.
|
static org.eclipse.jetty.server.handler.ContextHandler[] |
getWebContentHandlers()
Builds the list of web handlers for managing static web content given by the web-static-content
directory settings.
|
static void |
initialize(org.eclipse.jetty.server.Handler[] handlers)
Called by StandardServer.loadStartup() to start the Web Server.
|
static void |
terminate()
Shutdown web server instance if any.
|
addHandler, addHandler, addWebSocketHandler, addWebSocketHandler, getContextPath, getHost, getHttpConfiguration, getPort, getServer, getSslContextFactory, getWarFile, getWebAppConnectors, initializeWebApp, isRunning, join, removeHandler, setBootstrapConfig, setContextPath, setKeyStore, shutdown, startup, startup, startuppublic static final int HTTPS_PORT
private static final CentralLogger LOG
private static final java.lang.String MAX_OUTPUT_BUFFER_SIZE_PARAM
private static final java.lang.String MAX_OUTPUT_AGGREGATION_SIZE_PARAM
private static final java.lang.String WEB_SERVER_MAX_IDLE_TIMEOUT_PARAM
private static final java.lang.String MAX_RESPONSE_HEADER_SIZE_PARAM
private static final java.lang.String MAX_REQUEST_HEADER_SIZE_PARAM
private static WebServer instance
private int port
private WebServer(org.eclipse.jetty.server.Handler[] handlers)
throws java.lang.Exception
handlers - List of handlers to register.java.lang.Exception - If something goes wrong.public static java.lang.String getURL()
public static org.eclipse.jetty.server.handler.ContextHandler[] getWebContentHandlers()
throws java.lang.Throwable
java.lang.Throwable - Iff errors occur while reading web-static-content settings from the directorypublic static void initialize(org.eclipse.jetty.server.Handler[] handlers)
handlers - List of handlers to register.public static void terminate()