|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ivj.toolserver.servletclasses.servlet.Mock | +--com.ibm.ivj.toolserver.servletclasses.servlet.http.HttpServlet | +--org.apache.tools.ant.taskdefs.optional.ide.VAJToolsServlet
Abstract base class to provide common services for the VAJ tool API servlets
Field Summary | |
static java.lang.String |
CLASSES_PARAM
|
static java.lang.String |
DEFAULT_EXCLUDES_PARAM
|
static java.lang.String |
DIR_PARAM
|
static java.lang.String |
EXCLUDE_PARAM
|
static java.lang.String |
INCLUDE_PARAM
|
static java.lang.String |
PROJECT_NAME_PARAM
|
static java.lang.String |
RESOURCES_PARAM
|
static java.lang.String |
SOURCES_PARAM
|
Constructor Summary | |
VAJToolsServlet()
|
Method Summary | |
void |
doGet(com.ibm.ivj.toolserver.servletclasses.servlet.http.HttpServletRequest req,
com.ibm.ivj.toolserver.servletclasses.servlet.http.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(java.lang.String param)
Get the boolean value of a parameter. |
protected boolean |
getBooleanParam(java.lang.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 java.lang.String |
getFirstParamValueString(java.lang.String param)
Returns the first encountered value for a parameter. |
protected java.lang.String[] |
getParamValues(java.lang.String param)
Returns all values for a parameter. |
protected void |
initRequest()
initialize the servlet. |
protected boolean |
toBoolean(java.lang.String string)
A utility method to translate the strings "yes", "true", and "ok" to boolean true, and everything else to false. |
Methods inherited from class com.ibm.ivj.toolserver.servletclasses.servlet.Mock |
boom |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String DIR_PARAM
public static final java.lang.String INCLUDE_PARAM
public static final java.lang.String EXCLUDE_PARAM
public static final java.lang.String CLASSES_PARAM
public static final java.lang.String SOURCES_PARAM
public static final java.lang.String RESOURCES_PARAM
public static final java.lang.String DEFAULT_EXCLUDES_PARAM
public static final java.lang.String PROJECT_NAME_PARAM
Constructor Detail |
public VAJToolsServlet()
Method Detail |
protected abstract void executeRequest()
public void doGet(com.ibm.ivj.toolserver.servletclasses.servlet.http.HttpServletRequest req, com.ibm.ivj.toolserver.servletclasses.servlet.http.HttpServletResponse res) throws com.ibm.ivj.toolserver.servletclasses.servlet.ServletException, java.io.IOException
com.ibm.ivj.toolserver.servletclasses.servlet.ServletException
java.io.IOException
protected void initRequest() throws java.io.IOException
java.io.IOException
protected boolean getBooleanParam(java.lang.String param)
protected boolean getBooleanParam(java.lang.String param, boolean defaultValue)
protected java.lang.String getFirstParamValueString(java.lang.String param)
protected java.lang.String[] getParamValues(java.lang.String param)
protected boolean toBoolean(java.lang.String string)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |