public class JsmpWriter
extends java.lang.Object
Constructor and Description |
---|
JsmpWriter() |
Modifier and Type | Method and Description |
---|---|
void |
flush() |
void |
message(java.io.PrintWriter os,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
JMTP unidirectional message
|
void |
messageError(java.io.PrintWriter os,
java.lang.String to,
java.lang.String from,
java.io.Serializable value,
BamError error)
JMTP unidirectional message
|
void |
query(java.io.PrintWriter os,
long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
Low-level query
|
void |
queryError(java.io.PrintWriter os,
long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable payload,
BamError error)
Low-level query
|
void |
queryResult(java.io.PrintWriter os,
long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable value)
Low-level query
|
java.lang.String |
toString() |
public void message(java.io.PrintWriter os, java.lang.String to, java.lang.String from, java.io.Serializable value)
["message",
"to@to-host.com",
"from@from-host.com",
"message-class",
"json-payload"]
public void messageError(java.io.PrintWriter os, java.lang.String to, java.lang.String from, java.io.Serializable value, BamError error)
["message_error",
"to@to-host.com",
"from@from-host.com",
"com.example.MessageType",
json-payload,
json-error]
public void query(java.io.PrintWriter os, long id, java.lang.String to, java.lang.String from, java.io.Serializable value)
public void queryResult(java.io.PrintWriter os, long id, java.lang.String to, java.lang.String from, java.io.Serializable value)
public void queryError(java.io.PrintWriter os, long id, java.lang.String to, java.lang.String from, java.io.Serializable payload, BamError error)
public void flush() throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object