org.apache.tools.ant.taskdefs.optional.ide
Class VAJToolsServlet
public abstract
class
VAJToolsServlet
extends HttpServlet
Abstract base class to provide common services for the
VAJ tool API servlets
Method Summary |
void | doGet(HttpServletRequest req, HttpServletResponse res)
Respond to a HTTP request. |
protected abstract void | executeRequest()
Execute the request by calling the appropriate
VAJ tool API methods. |
protected boolean | getBooleanParam(String param)
Get the boolean value of a parameter. |
protected boolean | getBooleanParam(String param, boolean defaultValue)
Get the boolean value of a parameter, with a default value if
the parameter hasn't been passed to the servlet. |
protected String | getFirstParamValueString(String param)
Returns the first encountered value for a parameter. |
protected String[] | getParamValues(String param)
Returns all values for a parameter. |
protected void | initRequest()
initialize the servlet. |
protected boolean | toBoolean(String string)
A utility method to translate the strings "yes", "true", and "ok"
to boolean true, and everything else to false. |
public static final String CLASSES_PARAM
public static final String DEFAULT_EXCLUDES_PARAM
public static final String DIR_PARAM
public static final String EXCLUDE_PARAM
public static final String INCLUDE_PARAM
public static final String PROJECT_NAME_PARAM
public static final String RESOURCES_PARAM
public static final String SOURCES_PARAM
public void doGet(HttpServletRequest req, HttpServletResponse res)
Respond to a HTTP request. This method initializes
the servlet and handles errors.
The real work is done in the abstract method executeRequest()
protected abstract void executeRequest()
Execute the request by calling the appropriate
VAJ tool API methods. This method must be implemented
by the concrete servlets
protected boolean getBooleanParam(String param)
Get the boolean value of a parameter.
protected boolean getBooleanParam(String param, boolean defaultValue)
Get the boolean value of a parameter, with a default value if
the parameter hasn't been passed to the servlet.
protected String getFirstParamValueString(String param)
Returns the first encountered value for a parameter.
protected String[] getParamValues(String param)
Returns all values for a parameter.
protected void initRequest()
initialize the servlet.
protected boolean toBoolean(String string)
A utility method to translate the strings "yes", "true", and "ok"
to boolean true, and everything else to false.
Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.