com.google.gwt.rpc.server
Class WebModePayloadSink
java.lang.Object
com.google.gwt.rpc.client.ast.CommandSink
com.google.gwt.rpc.server.WebModePayloadSink
public class WebModePayloadSink
- extends com.google.gwt.rpc.client.ast.CommandSink
A CommandSink that will generate a web-mode payload.
ONE-SHOT EVAL (no incremental evaluation, must call finish())
Method Summary |
void |
accept(com.google.gwt.rpc.client.ast.RpcCommand command)
|
void |
finish()
The caller must close the stream. |
(package private) void |
forget(com.google.gwt.rpc.client.ast.ValueCommand x)
|
(package private) static byte[] |
getBytes(java.lang.String x)
|
(package private) boolean |
hasBackRef(com.google.gwt.rpc.client.ast.ValueCommand x)
|
(package private) byte[] |
makeBackRef(com.google.gwt.rpc.client.ast.ValueCommand x)
|
(package private) void |
send(java.nio.ByteBuffer x)
|
(package private) void |
send(java.lang.String x)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMMA_BYTES
static final byte[] COMMA_BYTES
DOT_BYTES
static final byte[] DOT_BYTES
EQ_BYTES
static final byte[] EQ_BYTES
FUNCTION_BYTES
static final byte[] FUNCTION_BYTES
LBRACE_BYTES
static final byte[] LBRACE_BYTES
LBRACKET_BYTES
static final byte[] LBRACKET_BYTES
LPAREN_BYTES
static final byte[] LPAREN_BYTES
NEW_BYTES
static final byte[] NEW_BYTES
NEWLINE_BYTES
static final byte[] NEWLINE_BYTES
NULL_BYTES
static final byte[] NULL_BYTES
ONE_BYTES
static final byte[] ONE_BYTES
QUOTE_BYTES
static final byte[] QUOTE_BYTES
RBRACE_BYTES
static final byte[] RBRACE_BYTES
RBRACKET_BYTES
static final byte[] RBRACKET_BYTES
RETURN_BYTES
static final byte[] RETURN_BYTES
RPAREN_BYTES
static final byte[] RPAREN_BYTES
SPACE_BYTES
static final byte[] SPACE_BYTES
SEMI_BYTES
static final byte[] SEMI_BYTES
THROW_BYTES
static final byte[] THROW_BYTES
ZERO_BYTES
static final byte[] ZERO_BYTES
PRETTY
static final boolean PRETTY
- A runtime flag to indicate that the generated output should be made to be
human-readable.
WebModePayloadSink
public WebModePayloadSink(ClientOracle clientOracle,
java.io.OutputStream out)
getBytes
static byte[] getBytes(java.lang.String x)
accept
public void accept(com.google.gwt.rpc.client.ast.RpcCommand command)
throws SerializationException
- Specified by:
accept
in class com.google.gwt.rpc.client.ast.CommandSink
- Throws:
SerializationException
finish
public void finish()
throws SerializationException
- The caller must close the stream.
- Specified by:
finish
in class com.google.gwt.rpc.client.ast.CommandSink
- Throws:
SerializationException
forget
void forget(com.google.gwt.rpc.client.ast.ValueCommand x)
hasBackRef
boolean hasBackRef(com.google.gwt.rpc.client.ast.ValueCommand x)
makeBackRef
byte[] makeBackRef(com.google.gwt.rpc.client.ast.ValueCommand x)
send
void send(java.nio.ByteBuffer x)
throws SerializationException
- Throws:
SerializationException
send
void send(java.lang.String x)
throws SerializationException
- Throws:
SerializationException