|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.bam.stream.AbstractMessageStream
com.caucho.bam.actor.AbstractActor
com.caucho.jsmp.JsmpWebSocketWriter
public class JsmpWebSocketWriter
JsmpWriteStream writes JSMP packets to an OutputStream.
| Constructor Summary | |
|---|---|
JsmpWebSocketWriter(WebSocketContext context)
|
|
JsmpWebSocketWriter(WriteStream out)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
java.lang.String |
getAddress()
The address of the stream |
boolean |
isClosed()
Tests if the stream is closed. |
void |
message(java.lang.String to,
java.lang.String from,
java.io.Serializable payload)
Sends a message to a given address |
void |
messageError(java.lang.String to,
java.lang.String from,
java.io.Serializable payload,
BamError error)
Sends a message error to a given address |
void |
query(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable payload)
Sends a queryGet to a given address |
void |
queryError(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable payload,
BamError error)
Sends a query error to a given address |
void |
queryResult(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable payload)
Sends a queryResult to a given address |
void |
setAddress(java.lang.String address)
The address of the stream |
| Methods inherited from class com.caucho.bam.stream.AbstractMessageStream |
|---|
getBroker, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.caucho.bam.stream.MessageStream |
|---|
getBroker |
| Constructor Detail |
|---|
public JsmpWebSocketWriter(WriteStream out)
throws java.io.IOException
java.io.IOException
public JsmpWebSocketWriter(WebSocketContext context)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.lang.String getAddress()
getAddress in interface MessageStreamgetAddress in class AbstractMessageStreampublic void setAddress(java.lang.String address)
public void message(java.lang.String to,
java.lang.String from,
java.io.Serializable payload)
message in interface MessageStreammessage in class AbstractMessageStreamto - the address of the target actorfrom - the address of the source actorpayload - the message payload
public void messageError(java.lang.String to,
java.lang.String from,
java.io.Serializable payload,
BamError error)
messageError in interface MessageStreammessageError in class AbstractMessageStreamto - the address of the target actorfrom - the address of the source actorpayload - the message payloaderror - the message error
public void query(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable payload)
query in interface MessageStreamquery in class AbstractMessageStreamid - the query idto - the address of the target actorfrom - the address of the source actorpayload - the message payload
public void queryResult(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable payload)
queryResult in interface MessageStreamqueryResult in class AbstractMessageStreamid - the query idto - the address of the target actorfrom - the address of the source actorpayload - the message payload
public void queryError(long id,
java.lang.String to,
java.lang.String from,
java.io.Serializable payload,
BamError error)
queryError in interface MessageStreamqueryError in class AbstractMessageStreamid - the query identifierto - the address of the target actorfrom - the address of the source actorpayload - the message payloaderror - the message errorpublic boolean isClosed()
AbstractMessageStream
isClosed in interface MessageStreamisClosed in class AbstractMessageStreampublic void flush()
public void close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||