public abstract class

AbstractSerializationStream

extends Object
java.lang.Object
   ↳ com.google.gwt.user.client.rpc.impl.AbstractSerializationStream
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Base class for the client and server serialization streams. This class handles the basic serialization and deserialization formatting for primitive types since these are common between the client and the server.

Summary

Constants
int DEFAULT_FLAGS The default flags to be used by serialization streams.
int FLAG_ELIDE_TYPE_NAMES Indicates that obfuscated type names should be used in the RPC payload.
int FLAG_RPC_TOKEN_INCLUDED Indicates that RPC token is included in the RPC payload.
char RPC_SEPARATOR_CHAR The character used to separate fields in client->server RPC messages.
int SERIALIZATION_STREAM_MIN_VERSION The oldest supported RPC protocol version.
int SERIALIZATION_STREAM_VERSION The current RPC protocol version.
int VALID_FLAGS_MASK Bit mask representing all valid flags.
Public Constructors
AbstractSerializationStream()
Public Methods
final void addFlags(int flags)
final boolean areFlagsValid()
Checks if flags are valid.
final int getFlags()
final int getVersion()
final boolean hasFlags(int flags)
final void setFlags(int flags)
Protected Methods
final void setVersion(int version)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int DEFAULT_FLAGS

The default flags to be used by serialization streams.

Constant Value: 0 (0x00000000)

public static final int FLAG_ELIDE_TYPE_NAMES

Indicates that obfuscated type names should be used in the RPC payload.

Constant Value: 1 (0x00000001)

public static final int FLAG_RPC_TOKEN_INCLUDED

Indicates that RPC token is included in the RPC payload.

Constant Value: 2 (0x00000002)

public static final char RPC_SEPARATOR_CHAR

The character used to separate fields in client->server RPC messages. Note that this character is referenced in the following places not using this constant, and they must be changed if this is:

Constant Value: 124 (0x0000007c)

public static final int SERIALIZATION_STREAM_MIN_VERSION

The oldest supported RPC protocol version.

Constant Value: 5 (0x00000005)

public static final int SERIALIZATION_STREAM_VERSION

The current RPC protocol version. This version differs from the previous one in that it supports {@links RpcToken}s.

Constant Value: 7 (0x00000007)

public static final int VALID_FLAGS_MASK

Bit mask representing all valid flags.

Constant Value: 3 (0x00000003)

Public Constructors

public AbstractSerializationStream ()

Public Methods

public final void addFlags (int flags)

public final boolean areFlagsValid ()

Checks if flags are valid.

Returns
  • true if flags are valid and false otherwise.

public final int getFlags ()

public final int getVersion ()

public final boolean hasFlags (int flags)

public final void setFlags (int flags)

Protected Methods

protected final void setVersion (int version)