public class ServerSupport extends Object
Constructor and Description |
---|
ServerSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
addWebApplication(Server server,
WebAppContext webapp) |
static Server |
applyXmlConfigurations(Server server,
List<File> files)
Apply xml files to server startup, passing in ourselves as the
"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 Exception
server
- the serverrequestLog
- the request logException
- 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 Exception
Exception
public static ContextHandlerCollection findContextHandlerCollection(Server server)
public static Server applyXmlConfigurations(Server server, List<File> files) throws Exception
server
- the server to apply the xml tofiles
- the list of xml filesException
- if unable to apply the xml configurationCopyright © 1995–2017 Webtide. All rights reserved.