org.tigris.scarab.pipeline
Class SetInfoMessageValve

java.lang.Object
  extended byorg.apache.turbine.pipeline.AbstractValve
      extended byorg.tigris.scarab.pipeline.SetInfoMessageValve
All Implemented Interfaces:
org.apache.turbine.Valve

public class SetInfoMessageValve
extends org.apache.turbine.pipeline.AbstractValve

This valve adds an informational message to the response. This valve exists early in the pipeline, so it is possible this message may get overridden by some more relevant message in a particular case. But most actions and those requests that don't involve an action will not set the info message; in these cases this message will be shown. The message is set through an administrator action and only persists until the server is restarted.

Version:
$Id: SetInfoMessageValve.java 7365 2003-03-15 21:56:59Z jon $
Author:
John McNally

Constructor Summary
SetInfoMessageValve()
           
 
Method Summary
 void invoke(org.apache.turbine.RunData data, org.apache.turbine.ValveContext context)
           
static void setMessage(java.lang.String msg)
           
 
Methods inherited from class org.apache.turbine.pipeline.AbstractValve
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SetInfoMessageValve

public SetInfoMessageValve()
Method Detail

invoke

public void invoke(org.apache.turbine.RunData data,
                   org.apache.turbine.ValveContext context)
            throws java.io.IOException,
                   org.apache.turbine.TurbineException
Throws:
java.io.IOException
org.apache.turbine.TurbineException
See Also:
Valve.invoke(RunData, ValveContext)

setMessage

public static void setMessage(java.lang.String msg)


Copyright © 2000-2004 Tigris.org. All Rights Reserved.