public class ServerSupport
extends java.lang.Object
Constructor and Description |
---|
ServerSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
addWebApplication(Server server,
WebAppContext webapp) |
static Server |
applyXmlConfigurations(Server server,
java.util.List<java.io.File> files)
Apply xml files to server instance.
|
static Server |
applyXmlConfigurations(Server server,
java.util.List<java.io.File> files,
java.util.Map<java.lang.String,java.lang.String> properties)
Apply xml files to server instance.
|
static void |
configureConnectors(Server server,
Connector connector)
Configure at least one connector for the server
|
static void |
configureDefaultConfigurationClasses(Server server) |
static void |
configureHandlers(Server server,
RequestLog requestLog)
Set up the handler structure to receive a webapp.
|
static void |
configureLoginServices(Server server,
LoginService[] loginServices)
Set up any security LoginServices provided.
|
static ContextHandlerCollection |
findContextHandlerCollection(Server server) |
public static void configureDefaultConfigurationClasses(Server server)
public static void configureHandlers(Server server, RequestLog requestLog) throws java.lang.Exception
server
- the serverrequestLog
- the request logjava.lang.Exception
- if unable to configure the handlerspublic static void configureConnectors(Server server, Connector connector)
server
- the serverconnector
- the connectorpublic static void configureLoginServices(Server server, LoginService[] loginServices)
server
- the serverloginServices
- the login servicespublic static void addWebApplication(Server server, WebAppContext webapp) throws java.lang.Exception
java.lang.Exception
public static ContextHandlerCollection findContextHandlerCollection(Server server)
public static Server applyXmlConfigurations(Server server, java.util.List<java.io.File> files, java.util.Map<java.lang.String,java.lang.String> properties) throws java.lang.Exception
server
- the server to apply the xml tofiles
- the list of xml filesproperties
- list of jetty propertiesjava.lang.Exception
- if unable to apply the xml configurationpublic static Server applyXmlConfigurations(Server server, java.util.List<java.io.File> files) throws java.lang.Exception
server
- the Server instance to configurefiles
- the xml configs to applyjava.lang.Exception
- if unable to apply the xml configurationCopyright © 1995–2023 Webtide. All rights reserved.