Package org.bedework.util.struts
Class MessageEmitSvlt
- java.lang.Object
-
- org.bedework.util.struts.ErrorEmitSvlt
-
- org.bedework.util.struts.MessageEmitSvlt
-
- All Implemented Interfaces:
Serializable,org.bedework.util.logging.Logged,MessageEmit
public class MessageEmitSvlt extends ErrorEmitSvlt
This class allows informational message generation in the struts world.- Version:
- 1.0
- Author:
- Mike Douglass douglm@rpi.edu
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bedework.util.struts.ErrorEmitSvlt
ErrorEmitSvlt.Msg
-
-
Field Summary
-
Fields inherited from class org.bedework.util.struts.ErrorEmitSvlt
caller, errors, exceptionPname, id, messages, msgList
-
-
Constructor Summary
Constructors Constructor Description MessageEmitSvlt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringclassName()voidemit(String pname)voidemit(String pname, Object o)voidemit(String pname, Object o1, Object o2)voidemit(String pname, Object o1, Object o2, Object o3)org.apache.struts.action.ActionMessagesgetMessages()protected booleanhaveOutputObject()booleanmessagesEmitted()voidreinit(String id, Object caller, org.apache.struts.util.MessageResources messages, org.apache.struts.action.ActionMessages msgs, String exceptionPname, boolean clear)Generation of errors in the servlet world means adding them to the errors object.-
Methods inherited from class org.bedework.util.struts.ErrorEmitSvlt
clear, debugMsg, emit, emit, getErrors, getLogger, getMsgList, reinit, setExceptionPname
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.bedework.util.logging.Logged
audit, debug, debug, enableAuditLogger, enableErrorLogger, enableMetricsLogger, error, error, error, info, isAuditLoggerEnabled, isErrorLoggerEnabled, isMetricsDebugEnabled, isMetricsLoggerEnabled, metrics, setLoggerClass, setLoggerClass, trace, trace, warn
-
-
-
-
Method Detail
-
reinit
public void reinit(String id, Object caller, org.apache.struts.util.MessageResources messages, org.apache.struts.action.ActionMessages msgs, String exceptionPname, boolean clear)
Generation of errors in the servlet world means adding them to the errors object. We need to call this routine on every entry to the application- Parameters:
id- An identifying namecaller- Used for log identificationmessages- Resourcesmsgs- Error message will be appended on failure.exceptionPname- Property name for exceptionsclear- clear list if true
-
emit
public void emit(String pname)
- Specified by:
emitin interfaceMessageEmit- Overrides:
emitin classErrorEmitSvlt
-
emit
public void emit(String pname, Object o)
- Specified by:
emitin interfaceMessageEmit- Overrides:
emitin classErrorEmitSvlt
-
emit
public void emit(String pname, Object o1, Object o2)
- Specified by:
emitin interfaceMessageEmit- Overrides:
emitin classErrorEmitSvlt
-
emit
public void emit(String pname, Object o1, Object o2, Object o3)
- Specified by:
emitin interfaceMessageEmit- Overrides:
emitin classErrorEmitSvlt
-
messagesEmitted
public boolean messagesEmitted()
- Specified by:
messagesEmittedin interfaceMessageEmit- Overrides:
messagesEmittedin classErrorEmitSvlt- Returns:
- true if any messages emitted
-
getMessages
public org.apache.struts.action.ActionMessages getMessages()
- Returns:
- messages
-
className
protected String className()
- Overrides:
classNamein classErrorEmitSvlt
-
haveOutputObject
protected boolean haveOutputObject()
- Overrides:
haveOutputObjectin classErrorEmitSvlt
-
-