org.apache.jetspeed.manager
Class ManagerServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.apache.jetspeed.manager.ManagerServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ManagerServlet
extends javax.servlet.http.HttpServlet

ManagerServlet ala Tomcat ManagerServlet

Version:
$Id: ManagerServlet.java 517719 2007-03-13 15:05:48Z ate $
Author:
Ate Douma
See Also:
Serialized Form

Field Summary
private  org.apache.jetspeed.tools.pamanager.servletcontainer.ApplicationServerManager asm
           
private  org.apache.jetspeed.deployment.DeploymentManager dm
           
private static int ERROR_IGNORED
           
private static int ERROR_INVALID
           
private static int ERROR_NO_DATA
           
private static int ERROR_SERVER
           
private static int ERROR_UNAVAILABLE
           
private static int ERROR_UNEXPECTED
           
private static int ERROR_UNKNOWN_COMMAND
           
private static int ERROR_UNKNOWN_PA
           
private static int ERROR_UNSUPPORTED
           
private static int OK
           
private  org.apache.jetspeed.factory.PortletFactory portletFactory
           
private  org.apache.jetspeed.components.portletregistry.PortletRegistry registry
           
 
Constructor Summary
ManagerServlet()
           
 
Method Summary
protected  int deploy(PrintWriter writer, javax.servlet.http.HttpServletRequest request)
           
 void destroy()
           
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
protected  void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
 void init()
           
protected  int list(PrintWriter writer)
           
protected  void process(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean posted)
           
protected  int start(PrintWriter writer, String paName)
           
protected  int stop(PrintWriter writer, String paName)
           
protected  int undeploy(PrintWriter writer, String paName)
           
protected  int unregister(PrintWriter writer, String paName)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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
 

Field Detail

OK

private static int OK

ERROR_NO_DATA

private static int ERROR_NO_DATA

ERROR_UNKNOWN_COMMAND

private static int ERROR_UNKNOWN_COMMAND

ERROR_UNKNOWN_PA

private static int ERROR_UNKNOWN_PA

ERROR_INVALID

private static int ERROR_INVALID

ERROR_UNSUPPORTED

private static int ERROR_UNSUPPORTED

ERROR_UNAVAILABLE

private static int ERROR_UNAVAILABLE

ERROR_SERVER

private static int ERROR_SERVER

ERROR_UNEXPECTED

private static int ERROR_UNEXPECTED

ERROR_IGNORED

private static int ERROR_IGNORED

asm

private org.apache.jetspeed.tools.pamanager.servletcontainer.ApplicationServerManager asm

registry

private org.apache.jetspeed.components.portletregistry.PortletRegistry registry

portletFactory

private org.apache.jetspeed.factory.PortletFactory portletFactory

dm

private org.apache.jetspeed.deployment.DeploymentManager dm
Constructor Detail

ManagerServlet

public ManagerServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     IOException
Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

doPost

protected void doPost(javax.servlet.http.HttpServletRequest request,
                      javax.servlet.http.HttpServletResponse response)
               throws javax.servlet.ServletException,
                      IOException
Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
IOException

process

protected void process(javax.servlet.http.HttpServletRequest request,
                       javax.servlet.http.HttpServletResponse response,
                       boolean posted)
                throws javax.servlet.ServletException,
                       IOException
Throws:
javax.servlet.ServletException
IOException

list

protected int list(PrintWriter writer)

start

protected int start(PrintWriter writer,
                    String paName)

stop

protected int stop(PrintWriter writer,
                   String paName)

undeploy

protected int undeploy(PrintWriter writer,
                       String paName)

unregister

protected int unregister(PrintWriter writer,
                         String paName)

deploy

protected int deploy(PrintWriter writer,
                     javax.servlet.http.HttpServletRequest request)


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.