public static enum BrowserChannel.MessageType extends Enum<BrowserChannel.MessageType>
Ids are used instead of relying on the ordinal to avoid sychronization problems with the client.
Enum Constant and Description |
---|
CHECK_VERSIONS |
CHOOSE_TRANSPORT |
FATAL_ERROR
Abnormal termination of the connection.
|
FREE_VALUE |
INVOKE
A message to invoke a method on the other side of the wire.
|
INVOKE_SPECIAL |
LOAD_JSNI
A request by the server to load JSNI source into the client's JS engine.
|
LOAD_MODULE |
OLD_LOAD_MODULE
v1 LOAD_MODULE message.
|
PROTOCOL_VERSION |
QUIT
Normal closure of the connection.
|
REQUEST_ICON |
REQUEST_PLUGIN |
RETURN
Returns the result of an INVOKE, INVOKE_SPECIAL, or LOAD_MODULE message.
|
SWITCH_TRANSPORT |
USER_AGENT_ICON |
Modifier and Type | Method and Description |
---|---|
int |
getId() |
static BrowserChannel.MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BrowserChannel.MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, createValueOfMap, equals, getDeclaringClass, hashCode, name, obfuscatedName, ordinal, toString, valueOf, valueOf
public static final BrowserChannel.MessageType INVOKE
BrowserChannel.InvokeOnClientMessage
and
BrowserChannel.InvokeOnServerMessage
.public static final BrowserChannel.MessageType RETURN
public static final BrowserChannel.MessageType OLD_LOAD_MODULE
public static final BrowserChannel.MessageType QUIT
public static final BrowserChannel.MessageType LOAD_JSNI
public static final BrowserChannel.MessageType INVOKE_SPECIAL
public static final BrowserChannel.MessageType FREE_VALUE
public static final BrowserChannel.MessageType FATAL_ERROR
public static final BrowserChannel.MessageType CHECK_VERSIONS
public static final BrowserChannel.MessageType PROTOCOL_VERSION
public static final BrowserChannel.MessageType CHOOSE_TRANSPORT
public static final BrowserChannel.MessageType SWITCH_TRANSPORT
public static final BrowserChannel.MessageType LOAD_MODULE
public static final BrowserChannel.MessageType REQUEST_ICON
public static final BrowserChannel.MessageType USER_AGENT_ICON
public static final BrowserChannel.MessageType REQUEST_PLUGIN
public static BrowserChannel.MessageType[] values()
for (BrowserChannel.MessageType c : BrowserChannel.MessageType.values()) System.out.println(c);
public static BrowserChannel.MessageType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getId()
Copyright © 2018. All rights reserved.