This project has retired. For details please refer to its
Attic page .
LogfileViewerAction (Jetspeed 1 Enterprise Portal 1.6 API)
org.apache.jetspeed.modules.actions.portlets
Class LogfileViewerAction
java.lang.Object
org.apache.turbine.modules.Assembler
org.apache.turbine.modules.Action
org.apache.turbine.modules.ActionEvent
org.apache.jetspeed.modules.actions.portlets.PortletActionEvent
org.apache.jetspeed.modules.actions.portlets.PortletAction
org.apache.jetspeed.modules.actions.portlets.GenericMVCAction
org.apache.jetspeed.modules.actions.portlets.LogfileViewerAction
public class LogfileViewerAction extends GenericMVCAction
This class is the action class for a portlet that lets you view the Log4J
logfiles defined in your Jetspeed installation.
the portlet iterates through the Log4J appender defined that are of type
FileAppender or its subclasses, and lists the filenames in a listbox.
The portlet puts the following in the context:
appenders
- a HashMap with the appenders found
files
- a HashMap with the filenames without path
logfile
- the content of the file indicated by selectedfile
Version:
$Id: LogfileViewerAction.java,v 1.3 2004/02/23 02:56:58 jford Exp $
Author:
Harald Ommang
Fields inherited from class org.apache.turbine.modules.ActionEvent
BUTTON, BUTTON_LENGTH, LENGTH, METHOD_NAME_LENGTH, METHOD_NAME_PREFIX
Method Summary
protected void
buildNormalContext (Portlet portlet,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData rundata)
Lists the current logfiles
void
doUpdate (org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
If a file is selected, it's contents is put in "logfile"
Methods inherited from class org.apache.turbine.modules.ActionEvent
executeEvents, formatString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
LogfileViewerAction
public LogfileViewerAction ()
Creates a new instance of LogFileViewerAction
buildNormalContext
protected void buildNormalContext (Portlet portlet,
org.apache.velocity.context.Context context,
org.apache.turbine.util.RunData rundata)
throws java.lang.Exception
Lists the current logfiles
Overrides: buildNormalContext
in class GenericMVCAction
Parameters: portlet
- The current portletcontext
- the current portlet context
Throws:
java.lang.Exception
doUpdate
public void doUpdate (org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context)
If a file is selected, it's contents is put in "logfile"
Parameters: context
- the current portlet context
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.