|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mortbay.jetty.plus.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
Field Summary | |
---|---|
static String |
DEFAULT_JETTY_CONFIG
|
Constructor Summary | |
---|---|
Server(int port,
String webAppDir,
String contextPathSpec)
Instantiate the server without using a jetty configuration file. |
|
Server(String string)
Instantiate the server using a jetty configuration file. |
Method Summary | |
---|---|
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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(String string) throws IOException
string
- Location of the Jetty config file
IOException
Method Detail |
---|
public static void main(String[] args)
args
- The arguments contained in the conf/wrapper.conf filepublic ServletContext getWebApp()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |