|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.webrender.ServerDelayMessage
com.sptci.echo2.ServerDelayMessage
public class ServerDelayMessage
Representation of a client/server-interaction delay message. Client/server-interaction delay messages are presented to the user while the client is communicating synchronously with the server.
Note: This class expects the server delay message to be specified
in a wait.xml (or its localised equivalents) file under the
META-INF/resource/localisation directory in the jar file, since
this is the standard location used for all localisation files.
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
protected Element |
message
The element that represents the message contained in WAIT_FILE. |
static String |
WAIT_FILE
The resource file that contains the custom wait message to display. |
| Fields inherited from class nextapp.echo2.webrender.ServerDelayMessage |
|---|
ELEMENT_ID_LONG_MESSAGE, ELEMENT_ID_MESSAGE |
| Constructor Summary | |
|---|---|
ServerDelayMessage(Locale[] locales)
Create a new instance of the message for the specified locale. |
|
| Method Summary | |
|---|---|
protected InputStream |
getInputStream(Locale[] locales)
Return the InputStream for the resource file. |
Element |
getMessage()
Return the message text to display. |
protected Document |
parseDocument(InputStream inputStream)
Build the Document out of the contents in the specified
InputStream. |
| Methods inherited from class nextapp.echo2.webrender.ServerDelayMessage |
|---|
createFromResource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String WAIT_FILE
protected Element message
WAIT_FILE.
| Constructor Detail |
|---|
public ServerDelayMessage(Locale[] locales)
throws IOException
locales - The locale(s) of the client browser to use to fetch the
localised message.
IOException - If errors are encountered while reading the resource
file.getInputStream(java.util.Locale[]),
parseDocument(java.io.InputStream)| Method Detail |
|---|
protected InputStream getInputStream(Locale[] locales)
throws IOException
InputStream for the resource file.
locales - The locale(s) of the client browser to use to fetch the
localised resource file.
IOException - If errors are encountered while fetching the resource
file.
protected Document parseDocument(InputStream inputStream)
throws IOException
Document out of the contents in the specified
InputStream.
inputStream - The InputStream to build the document from.
Document for convenience.
IOException - If errors are encountered while reading from the
InputStream.public Element getMessage()
message text to display.
getMessage in class ServerDelayMessage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||