Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.client.api.base
Enum Capabilities

java.lang.Object
  extended by java.lang.Enum<Capabilities>
      extended by org.jboss.errai.bus.client.api.base.Capabilities
All Implemented Interfaces:
Serializable, Comparable<Capabilities>

public enum Capabilities
extends Enum<Capabilities>

An enumeration of the possible mechanisms by which a bus can communicate with another remote bus.


Enum Constant Summary
LongPolling
          This message bus can communicate updates using HTTP long polling, commonly known as COMET.
ShortPolling
          Indicates that this message bus can communicate using HTTP short polling.
SSE
          This message bus can communicate using Server-Sent Events
WebSockets
          This message bus can communicate updates using the Errai protocol over a WebSocket channel.
 
Method Summary
static Capabilities valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Capabilities[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LongPolling

public static final Capabilities LongPolling
This message bus can communicate updates using HTTP long polling, commonly known as COMET.


ShortPolling

public static final Capabilities ShortPolling
Indicates that this message bus can communicate using HTTP short polling.

Implementation note: This flag is WACK, man.


WebSockets

public static final Capabilities WebSockets
This message bus can communicate updates using the Errai protocol over a WebSocket channel.


SSE

public static final Capabilities SSE
This message bus can communicate using Server-Sent Events

Method Detail

values

public static Capabilities[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Capabilities c : Capabilities.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Capabilities valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.