org.figure8.join.control.action
Class BrowseLogsActions
java.lang.Object
org.apache.struts.action.Action
org.figure8.join.control.JoinAction
org.figure8.join.control.action.BrowseLogsActions
public class BrowseLogsActions
- extends JoinAction
A simple Struts action for viewing directory and file content.
- Version:
- $Revision: 1.1 $
- Author:
- Laurent Broudoux
Field Summary |
static java.lang.String |
DIR_OP
Operation code for browsing a specific logs directory |
static java.lang.String |
FILE_OP
Operation code for browsing a spcifif file content |
Fields inherited from class org.apache.struts.action.Action |
defaultLocale, servlet |
Method Summary |
protected org.apache.struts.action.ActionForward |
browseDirectory(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Browse a directory content, putting it into a Map. |
org.apache.struts.action.ActionForward |
doExecute(java.lang.String operation,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Abstract method that subclasses must implement. |
protected org.apache.struts.action.ActionForward |
getFileContent(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get a text file content, putting it into a request attribute. |
Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DIR_OP
public static final java.lang.String DIR_OP
- Operation code for browsing a specific logs directory
- See Also:
- Constant Field Values
FILE_OP
public static final java.lang.String FILE_OP
- Operation code for browsing a spcifif file content
- See Also:
- Constant Field Values
BrowseLogsActions
public BrowseLogsActions()
- Creates a new instance of BrowseLogsActions
doExecute
public org.apache.struts.action.ActionForward doExecute(java.lang.String operation,
org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
- Description copied from class:
JoinAction
- Abstract method that subclasses must implement. The real execution must
be done here according to the specified operation. ActionForward
returned by execution should only point on page fragment : this superclass
is responsible of including them within a whole page.
- Specified by:
doExecute
in class JoinAction
- Parameters:
operation
- String representing the operation to invoke on Actionmapping
- Mapping between forwards name and path for this actionform
- The form object containing request parametersrequest
- The servlet container request wrapperresponse
- The servlet container response wrapper
- Returns:
- A forward to the next view to render and display
- Throws:
java.lang.Exception
- such as InfraStructureExceptions ...
browseDirectory
protected org.apache.struts.action.ActionForward browseDirectory(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
- Browse a directory content, putting it into a Map.
- Returns:
- A forward to the next view to render and display
- Throws:
java.lang.Exception
getFileContent
protected org.apache.struts.action.ActionForward getFileContent(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.lang.Exception
- Get a text file content, putting it into a request attribute.
- Returns:
- A forward to the next view to render and display
- Throws:
java.lang.Exception
Copyright © 2005-2008 Join. All Rights Reserved.