triptracker.core
Enum ConnectionState

java.lang.Object
  extended by java.lang.Enum<ConnectionState>
      extended by triptracker.core.ConnectionState
All Implemented Interfaces:
Serializable, Comparable<ConnectionState>

public enum ConnectionState
extends Enum<ConnectionState>

Client connection state.


Enum Constant Summary
AUTH_FAILED
          Client authentication failed.
AUTH_SUCCESS
          Client authentication successful.
CONNECTED
          Client is connected to server, but not authenticated yet.
DISCONNECTED
          Client logged out/disconnected from server.
SUBSCRIBED
          Client subscribed to realtime route
TRACKING
          GPS Client tracking realtime route
UNSUBSCRIBED
          Client unsubscribed to realtime route
WATCHING
          GPS Client not tracking realtime route
 
Method Summary
static ConnectionState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConnectionState[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONNECTED

public static final ConnectionState CONNECTED
Client is connected to server, but not authenticated yet.


AUTH_SUCCESS

public static final ConnectionState AUTH_SUCCESS
Client authentication successful.


AUTH_FAILED

public static final ConnectionState AUTH_FAILED
Client authentication failed.


DISCONNECTED

public static final ConnectionState DISCONNECTED
Client logged out/disconnected from server.


SUBSCRIBED

public static final ConnectionState SUBSCRIBED
Client subscribed to realtime route


UNSUBSCRIBED

public static final ConnectionState UNSUBSCRIBED
Client unsubscribed to realtime route


TRACKING

public static final ConnectionState TRACKING
GPS Client tracking realtime route


WATCHING

public static final ConnectionState WATCHING
GPS Client not tracking realtime route

Method Detail

values

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

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

valueOf

public static ConnectionState 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


Copyright © 2006 Team Trip Tracker. All Rights Reserved.