|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.monkeycoder.monkeynetwork.UpdateMessage
public class UpdateMessage
Used within MonkeyNetwork as a unified update message.
| Field Summary | |
|---|---|
static int |
UPDATE_CONTENT_DOWNLOAD_FAILED
The requested content download has failed outright. |
static int |
UPDATE_CONTENT_DOWNLOADED
Content has completely and successfully downloaded. |
static int |
UPDATE_INFO_ALT_CONTENT
Informational, an error was detected and the content is likely an error page instead of the requested content. |
static int |
UPDATE_INFO_REDIRECTING
Informational, a 3xx level redirection is taking place. |
static int |
UPDATE_NONE
No Message |
| Constructor Summary | |
|---|---|
UpdateMessage(int inMessageType)
Initializes a new UpdateMessage to a certain type. |
|
UpdateMessage(int inMessageType,
java.lang.Object inData)
Initializes a new UpdateMessage to a certain type and bundles data with it. |
|
UpdateMessage(int inMessageType,
java.lang.String inData)
Initializes a new UpdateMessage to a certain type and bundles String data with it. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getData()
Returns the data of this message. |
java.lang.String |
getDataAsString()
Returns the data of this message as a String. |
int |
getType()
Returns the type of this message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UPDATE_NONE
public static final int UPDATE_CONTENT_DOWNLOADED
public static final int UPDATE_CONTENT_DOWNLOAD_FAILED
public static final int UPDATE_INFO_REDIRECTING
public static final int UPDATE_INFO_ALT_CONTENT
| Constructor Detail |
|---|
public UpdateMessage(int inMessageType)
inMessageType - The type of the message.
public UpdateMessage(int inMessageType,
java.lang.Object inData)
inMessageType - The type of the message.inData - The data to bundle in with the message.
public UpdateMessage(int inMessageType,
java.lang.String inData)
inMessageType - The type of the message.inData - The String data to bundle in with the message.| Method Detail |
|---|
public int getType()
public java.lang.Object getData()
public java.lang.String getDataAsString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||