|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.core.messenger.browser.BrowserMessage
public class BrowserMessage
Holds a message being dispatched to a BrowserMessageListener
.
Field Summary | |
---|---|
static int |
ARRAY_PARAM
Parameters were an encoded JSONArray. |
static String |
MESSAGE_DELIM
Separates prefix and listener ID from rest of message. |
static String |
MESSAGE_DELIM_ENCODED
|
static String |
MESSAGE_PREFIX
All messages must start with this prefix. |
static int |
NO_PARAM
There were no parameters passed with the message. |
static int |
OBJECT_PARAM
Parameters were an encoded JSONObject. |
Constructor Summary | |
---|---|
BrowserMessage(String listenerId,
String operationId,
Map<?,?> params)
|
Method Summary | |
---|---|
void |
addCompletionListener(MessageCompletionListener l)
|
void |
complete(boolean bOnlyNonDelayed,
boolean success,
Object data)
Sets the message complete and fires of the listeners who are waiting for a response. |
void |
debug(String message)
|
void |
debug(String message,
Throwable t)
|
Map |
getDecodedMap()
|
String |
getListenerId()
|
String |
getOperationId()
|
String |
getReferer()
|
void |
removeCompletionListener(MessageCompletionListener l)
|
void |
setCompleteDelayed(boolean bCompleteDelayed)
|
void |
setReferer(String referer)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String MESSAGE_PREFIX
public static final String MESSAGE_DELIM
public static String MESSAGE_DELIM_ENCODED
public static final int NO_PARAM
public static final int OBJECT_PARAM
public static final int ARRAY_PARAM
Constructor Detail |
---|
public BrowserMessage(String listenerId, String operationId, Map<?,?> params)
Method Detail |
---|
public void addCompletionListener(MessageCompletionListener l)
public void complete(boolean bOnlyNonDelayed, boolean success, Object data)
bOnlyNonDelayed
- Only mark complete if this message does not have a delayed reponsesuccess
- Success level of the messagedata
- Any data the message results wants to sendpublic void debug(String message)
public void debug(String message, Throwable t)
public Map getDecodedMap()
public String getListenerId()
public String getOperationId()
public String getReferer()
public void removeCompletionListener(MessageCompletionListener l)
public void setCompleteDelayed(boolean bCompleteDelayed)
public void setReferer(String referer)
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |