Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.help.internal.webapp.servlet
Class ControlServlet  view ControlServlet download ControlServlet.java

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.eclipse.help.internal.webapp.servlet.ControlServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ControlServlet
extends javax.servlet.http.HttpServlet

Servlet to control Eclipse helpApplication from standalone application. Accepts the following parameters: command=displayHelp | shutdown | install | update | enable | disable | uninstall | search | listFeatures | addSite | removeSite | apply. href - may be provided if comand==displayHelp. featureId, version, from, to, verifyOnly may be provided for update commands


Field Summary
static java.lang.String CLASS_ADDSITE
           
static java.lang.String CLASS_DISABLE
           
static java.lang.String CLASS_ENABLE
           
static java.lang.String CLASS_INSTALL
           
static java.lang.String CLASS_LIST
           
static java.lang.String CLASS_REMOVESITE
           
static java.lang.String CLASS_SEARCH
           
static java.lang.String CLASS_UNINSTALL
           
static java.lang.String CLASS_UPDATE
           
static java.lang.String CMD_ADDSITE
           
static java.lang.String CMD_APPLY
           
static java.lang.String CMD_DISABLE
           
static java.lang.String CMD_DISPLAYHELP
           
static java.lang.String CMD_ENABLE
           
static java.lang.String CMD_INSTALL
           
static java.lang.String CMD_LIST
           
static java.lang.String CMD_REMOVESITE
           
static java.lang.String CMD_SEARCH
           
static java.lang.String CMD_SHUTDOWN
           
static java.lang.String CMD_UNINSTALL
           
static java.lang.String CMD_UPDATE
           
private  org.eclipse.help.internal.base.HelpDisplay helpDisplay
           
static java.lang.String PACKAGE_PREFIX
           
static java.lang.String PARAM_FEATUREID
           
static java.lang.String PARAM_FROM
           
static java.lang.String PARAM_TO
           
static java.lang.String PARAM_VERIFYONLY
           
static java.lang.String PARAM_VERSION
           
private  boolean shuttingDown
           
static java.lang.String UPDATE_PLUGIN_ID
           
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
ControlServlet()
           
 
Method Summary
private  void displayHelp(javax.servlet.http.HttpServletRequest req)
          Displays help.
protected  void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Called by the server (via the service method) to allow a servlet to handle a GET request.
protected  void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
          Called by the server (via the service method) to allow a servlet to handle a POST request.
private  java.lang.Object[] getInitArgs(java.lang.String className, javax.servlet.http.HttpServletRequest req)
           
private  java.lang.Class[] getParameterTypes(java.lang.String className)
           
private  java.lang.String getStandaloneClassName(java.lang.String command)
           
 void init()
          Called by the servlet container to indicate to a servlet that the servlet is being placed into service.
private  void processRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)
           
private  void shutdown()
          Shuts-down Eclipse helpApplication.
private  void updateDocs(java.lang.String command, javax.servlet.http.HttpServletRequest req)
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, 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
 

Field Detail

UPDATE_PLUGIN_ID

public static final java.lang.String UPDATE_PLUGIN_ID
See Also:
Constant Field Values

CMD_DISPLAYHELP

public static final java.lang.String CMD_DISPLAYHELP
See Also:
Constant Field Values

CMD_SHUTDOWN

public static final java.lang.String CMD_SHUTDOWN
See Also:
Constant Field Values

CMD_INSTALL

public static final java.lang.String CMD_INSTALL
See Also:
Constant Field Values

CMD_UPDATE

public static final java.lang.String CMD_UPDATE
See Also:
Constant Field Values

CMD_ENABLE

public static final java.lang.String CMD_ENABLE
See Also:
Constant Field Values

CMD_DISABLE

public static final java.lang.String CMD_DISABLE
See Also:
Constant Field Values

CMD_UNINSTALL

public static final java.lang.String CMD_UNINSTALL
See Also:
Constant Field Values

CMD_SEARCH

public static final java.lang.String CMD_SEARCH
See Also:
Constant Field Values

CMD_LIST

public static final java.lang.String CMD_LIST
See Also:
Constant Field Values

CMD_ADDSITE

public static final java.lang.String CMD_ADDSITE
See Also:
Constant Field Values

CMD_APPLY

public static final java.lang.String CMD_APPLY
See Also:
Constant Field Values

CMD_REMOVESITE

public static final java.lang.String CMD_REMOVESITE
See Also:
Constant Field Values

PACKAGE_PREFIX

public static final java.lang.String PACKAGE_PREFIX
See Also:
Constant Field Values

CLASS_INSTALL

public static final java.lang.String CLASS_INSTALL
See Also:
Constant Field Values

CLASS_UPDATE

public static final java.lang.String CLASS_UPDATE
See Also:
Constant Field Values

CLASS_ENABLE

public static final java.lang.String CLASS_ENABLE
See Also:
Constant Field Values

CLASS_DISABLE

public static final java.lang.String CLASS_DISABLE
See Also:
Constant Field Values

CLASS_UNINSTALL

public static final java.lang.String CLASS_UNINSTALL
See Also:
Constant Field Values

CLASS_SEARCH

public static final java.lang.String CLASS_SEARCH
See Also:
Constant Field Values

CLASS_LIST

public static final java.lang.String CLASS_LIST
See Also:
Constant Field Values

CLASS_ADDSITE

public static final java.lang.String CLASS_ADDSITE
See Also:
Constant Field Values

CLASS_REMOVESITE

public static final java.lang.String CLASS_REMOVESITE
See Also:
Constant Field Values

PARAM_FEATUREID

public static final java.lang.String PARAM_FEATUREID
See Also:
Constant Field Values

PARAM_VERSION

public static final java.lang.String PARAM_VERSION
See Also:
Constant Field Values

PARAM_FROM

public static final java.lang.String PARAM_FROM
See Also:
Constant Field Values

PARAM_TO

public static final java.lang.String PARAM_TO
See Also:
Constant Field Values

PARAM_VERIFYONLY

public static final java.lang.String PARAM_VERIFYONLY
See Also:
Constant Field Values

helpDisplay

private org.eclipse.help.internal.base.HelpDisplay helpDisplay

shuttingDown

private boolean shuttingDown
Constructor Detail

ControlServlet

public ControlServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Called by the servlet container to indicate to a servlet that the servlet is being placed into service.


doGet

protected void doGet(javax.servlet.http.HttpServletRequest req,
                     javax.servlet.http.HttpServletResponse resp)
              throws javax.servlet.ServletException,
                     java.io.IOException
Called by the server (via the service method) to allow a servlet to handle a GET request.


doPost

protected void doPost(javax.servlet.http.HttpServletRequest req,
                      javax.servlet.http.HttpServletResponse resp)
               throws javax.servlet.ServletException,
                      java.io.IOException
Called by the server (via the service method) to allow a servlet to handle a POST request.


processRequest

private void processRequest(javax.servlet.http.HttpServletRequest req,
                            javax.servlet.http.HttpServletResponse resp)
                     throws javax.servlet.ServletException,
                            java.io.IOException

updateDocs

private void updateDocs(java.lang.String command,
                        javax.servlet.http.HttpServletRequest req)

getStandaloneClassName

private java.lang.String getStandaloneClassName(java.lang.String command)

getParameterTypes

private java.lang.Class[] getParameterTypes(java.lang.String className)

getInitArgs

private java.lang.Object[] getInitArgs(java.lang.String className,
                                       javax.servlet.http.HttpServletRequest req)

shutdown

private void shutdown()
Shuts-down Eclipse helpApplication.


displayHelp

private void displayHelp(javax.servlet.http.HttpServletRequest req)
Displays help.