java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.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
| Fields inherited from class javax.servlet.http.HttpServlet |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ControlServlet
public ControlServlet()
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.