Class ServerBuilder
- java.lang.Object
-
- com.adaptris.core.management.jetty.ServerBuilder
-
- Direct Known Subclasses:
FromClasspath
public abstract class ServerBuilder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
log
static java.lang.String
WEB_SERVER_CONFIG_FILE_NAME_CGF_KEY
static java.lang.String
WEB_SERVER_PORT_CFG_KEY
static java.lang.String
WEB_SERVER_WEBAPP_URL_CFG_KEY
-
Constructor Summary
Constructors Modifier Constructor Description protected
ServerBuilder(java.util.Properties p)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract org.eclipse.jetty.server.Server
build()
protected static org.eclipse.jetty.server.Server
build(java.util.Properties config)
protected java.util.Properties
getConfig()
protected java.lang.String
getConfigItem(java.lang.String key)
protected java.lang.String
getConfigItem(java.lang.String key, java.lang.String defaultValue)
-
-
-
Field Detail
-
WEB_SERVER_PORT_CFG_KEY
public static final java.lang.String WEB_SERVER_PORT_CFG_KEY
- See Also:
- Constant Field Values
-
WEB_SERVER_CONFIG_FILE_NAME_CGF_KEY
public static final java.lang.String WEB_SERVER_CONFIG_FILE_NAME_CGF_KEY
- See Also:
- Constant Field Values
-
WEB_SERVER_WEBAPP_URL_CFG_KEY
public static final java.lang.String WEB_SERVER_WEBAPP_URL_CFG_KEY
- See Also:
- Constant Field Values
-
log
protected static final org.slf4j.Logger log
-
-
Method Detail
-
build
protected abstract org.eclipse.jetty.server.Server build() throws java.lang.Exception
- Throws:
java.lang.Exception
-
build
protected static final org.eclipse.jetty.server.Server build(java.util.Properties config) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getConfig
protected java.util.Properties getConfig()
-
getConfigItem
protected java.lang.String getConfigItem(java.lang.String key)
-
getConfigItem
protected java.lang.String getConfigItem(java.lang.String key, java.lang.String defaultValue)
-
-