GWT 2.6.1

com.google.gwt.rpc.server
Class WebModePayloadSink

java.lang.Object
  extended by com.google.gwt.rpc.client.ast.CommandSink
      extended by 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())


Field Summary
(package private) static byte[] COMMA_BYTES
           
(package private) static byte[] DOT_BYTES
           
(package private) static byte[] EQ_BYTES
           
(package private) static byte[] FUNCTION_BYTES
           
(package private) static byte[] LBRACE_BYTES
           
(package private) static byte[] LBRACKET_BYTES
           
(package private) static byte[] LPAREN_BYTES
           
(package private) static byte[] NEW_BYTES
           
(package private) static byte[] NEWLINE_BYTES
           
(package private) static byte[] NULL_BYTES
           
(package private) static byte[] ONE_BYTES
           
(package private) static boolean PRETTY
          A runtime flag to indicate that the generated output should be made to be human-readable.
(package private) static byte[] QUOTE_BYTES
           
(package private) static byte[] RBRACE_BYTES
           
(package private) static byte[] RBRACKET_BYTES
           
(package private) static byte[] RETURN_BYTES
           
(package private) static byte[] RPAREN_BYTES
           
(package private) static byte[] SEMI_BYTES
           
(package private) static byte[] SPACE_BYTES
           
(package private) static byte[] THROW_BYTES
           
(package private) static byte[] ZERO_BYTES
           
 
Constructor Summary
WebModePayloadSink(ClientOracle clientOracle, java.io.OutputStream out)
           
 
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
 

Field Detail

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.

Constructor Detail

WebModePayloadSink

public WebModePayloadSink(ClientOracle clientOracle,
                          java.io.OutputStream out)
Method Detail

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

GWT 2.6.1