|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.web.BaseWebAction toolbox.web.actions.wsil.Dir2WSILAction
public class Dir2WSILAction
Action implementation to generate a WSIL document based on the contents of a directory.
An example configuration can be found at etc/dir2wsil_web_config.xml in the toolbox distribution. The WSIL template can be found at share/freemarker/dir2wsil.ftl in the toolbox distribution.
Constructor Summary | |
---|---|
Dir2WSILAction()
Default constructor |
Method Summary | |
---|---|
void |
create(java.lang.String name,
Controller controller,
javax.servlet.ServletContext context)
Override the create method to initialise the WSIL data. |
void |
execute(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletContext context)
Populate the request with the WSIL and server information. |
Methods inherited from class toolbox.web.BaseWebAction |
---|
dispatch, getBodyAsDocument, getBodyAsString, getDisplayTemplate, getFailureTemplate, getForeignContext, getGlobalProperty, getMessage, getName, getProperties, getProperty, getResource, getResourceBundle, getResourceString, getResourceString, getResourceString, getResourceString, getResourceString, getSuccessTemplate, getTemplate, getValidator, logConfig, logFine, logFiner, logFinest, logInfo, logSevere, logWarning, redirect, split |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dir2WSILAction()
Method Detail |
---|
public void create(java.lang.String name, Controller controller, javax.servlet.ServletContext context) throws ConfException
create
in interface WebAction
create
in class BaseWebAction
name
- Action name.controller
- Controller that created this action.context
- Current servlet context.
ConfException
- if the action cannot be created.public void execute(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletContext context) throws javax.servlet.ServletException, java.io.IOException
execute
in interface WebAction
request
- HTTP request received.response
- HTTP response to be used.context
- Current servlet context.
javax.servlet.ServletException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |