|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AggregateLifeCycle
org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.server.handler.AbstractHandlerContainer
org.eclipse.jetty.server.handler.HandlerWrapper
org.eclipse.jetty.server.Server
com.atlassian.bamboo.server.Server
public class Server
This class uses Jetty to run the Bamboo web server.
You can run the user by passing the port and webapp directory into the constructor, or pass a jetty configuration file from the command line. Having this lets us execute the jar from the command line
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jetty.server.Server |
---|
org.eclipse.jetty.server.Server.Graceful |
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
---|
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener |
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle |
---|
org.eclipse.jetty.util.component.LifeCycle.Listener |
Field Summary | |
---|---|
static String |
DEFAULT_JETTY_CONFIG
|
Fields inherited from class org.eclipse.jetty.server.handler.HandlerWrapper |
---|
_handler |
Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
---|
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING |
Constructor Summary | |
---|---|
Server(int port,
String webAppDir,
String contextPathSpec)
Instantiate the server without using a jetty configuration file. |
|
Server(int sslPort,
String webAppDir,
String contextPathSpec,
String keystore,
String keypass)
Instantiate the server with SLL without using a jetty configuration file. |
|
Server(String string)
Instantiate the server using a jetty configuration file. |
Method Summary | |
---|---|
javax.servlet.ServletContext |
getWebApp()
Provide access to the Bamboo web application context. |
static void |
main(String[] args)
Used by the Java Service Wrapper to run the program. |
Methods inherited from class org.eclipse.jetty.server.Server |
---|
addBean, addConnector, addLifeCycle, clearAttributes, doStart, doStop, dump, getAttribute, getAttributeNames, getConnectors, getContainer, getGracefulShutdown, getMaxCookieVersion, getSendDateHeader, getSendServerVersion, getSessionIdManager, getStopAtShutdown, getThreadPool, getVersion, handle, handleAsync, isDumpAfterStart, isDumpBeforeStop, isUncheckedPrintWriter, join, removeAttribute, removeBean, removeConnector, removeLifeCycle, setAttribute, setConnectors, setDumpAfterStart, setDumpBeforeStop, setGracefulShutdown, setMaxCookieVersion, setSendDateHeader, setSendServerVersion, setSessionIdManager, setStopAtShutdown, setThreadPool, setUncheckedPrintWriter, toString |
Methods inherited from class org.eclipse.jetty.server.handler.HandlerWrapper |
---|
destroy, expandChildren, getHandler, getHandlers, getNestedHandlerByClass, handle, setHandler, setServer |
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandlerContainer |
---|
expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass |
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandler |
---|
dumpThis, getServer |
Methods inherited from class org.eclipse.jetty.util.component.AggregateLifeCycle |
---|
addBean, contains, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBeans, unmanage |
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
---|
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle |
---|
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
Field Detail |
---|
public static final String DEFAULT_JETTY_CONFIG
Constructor Detail |
---|
public Server(int port, String webAppDir, String contextPathSpec) throws IOException
port
- The port bamboo is listening onwebAppDir
- The location of the bamboo webapp filescontextPathSpec
- The context path spec. Which must be of the form / or /path/*
IOException
public Server(int sslPort, String webAppDir, String contextPathSpec, String keystore, String keypass) throws IOException
sslPort
- The ssl port bamboo is listening onwebAppDir
- The location of the bamboo webapp filescontextPathSpec
- The context path spec. Which must be of the form / or /path/*keystore
- The keystore locationkeypass
- The keystore password
IOException
public Server(String string) throws Exception
string
- Location of the Jetty config file
Exception
- if the server cannot be configuredMethod Detail |
---|
public static void main(String[] args)
args
- The arguments contained in the conf/wrapper.conf filepublic javax.servlet.ServletContext getWebApp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |