net.sourceforge.cruisecontrol.servlet
Class XmlServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
net.sourceforge.cruisecontrol.servlet.XmlServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class XmlServlet
- extends javax.servlet.http.HttpServlet
Servlet to generate an XML file in the format required by cctray
see http://confluence.public.thoughtworks.org/display/CCNET/CCTray
- See Also:
- Serialized Form
Method Summary |
java.lang.String |
getLogDirPath()
|
java.lang.String |
getSingleProject()
|
java.lang.String |
getStatusFile()
|
void |
init(javax.servlet.ServletConfig servletconfig)
Set up the servlet, mainly getting the required parameters. |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Produce XML in the format required by CCTray |
Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, service |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STATUS_UNKNOWN
public static final java.lang.String STATUS_UNKNOWN
- See Also:
- Constant Field Values
STATUS_SUCCESS
public static final java.lang.String STATUS_SUCCESS
- See Also:
- Constant Field Values
STATUS_FAILURE
public static final java.lang.String STATUS_FAILURE
- See Also:
- Constant Field Values
ACTIVITY_CHECKING_MODIFICATIONS
public static final java.lang.String ACTIVITY_CHECKING_MODIFICATIONS
- See Also:
- Constant Field Values
ACTIVITY_BUILDING
public static final java.lang.String ACTIVITY_BUILDING
- See Also:
- Constant Field Values
ACTIVITY_SLEEPING
public static final java.lang.String ACTIVITY_SLEEPING
- See Also:
- Constant Field Values
LOG_DIR
public static final java.lang.String LOG_DIR
- See Also:
- Constant Field Values
SINGLE_PROJECT
public static final java.lang.String SINGLE_PROJECT
- See Also:
- Constant Field Values
CURRENT_BUILD_STATUS_FILE
public static final java.lang.String CURRENT_BUILD_STATUS_FILE
- See Also:
- Constant Field Values
XmlServlet
public XmlServlet()
init
public void init(javax.servlet.ServletConfig servletconfig)
throws javax.servlet.ServletException
- Set up the servlet, mainly getting the required parameters.
- Throws:
javax.servlet.ServletException
- See Also:
GenericServlet.init(javax.servlet.ServletConfig)
service
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Produce XML in the format required by CCTray
- Throws:
javax.servlet.ServletException
java.io.IOException
- See Also:
HttpServlet
getLogDirPath
public java.lang.String getLogDirPath()
getSingleProject
public java.lang.String getSingleProject()
getStatusFile
public java.lang.String getStatusFile()