|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.cetia4.controller.support.CompoundMessage
public final class CompoundMessage
This class implements a compound message that allows various messages to be stored and displayed in a JSP page. This is meant to be stored within the com.acsinet_solutions.cetia4.controller.AttributeKeys._MESSAGE_KEY session/request attribute.
The individual messages of a CompoundMessage may be obtained individually, or combined in an HTML list using the toString() method.
The setMessage() method of com.acsinet_solutions.cetia4.controller.RequestContext will transparently append messages to a CompoundMessage with every call of it, so newly added messages won't override previous ones.
| Constructor Summary | |
|---|---|
CompoundMessage(java.lang.String message)
Create a CompoundMessage with the provided starting message |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String message)
Add a message to the internal list. |
java.util.List<java.lang.String> |
getList()
Obtain the list of messages. |
java.lang.String |
toString()
Convenience display method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundMessage(java.lang.String message)
| Method Detail |
|---|
public final void add(java.lang.String message)
public final java.util.List<java.lang.String> getList()
public final java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||