net.barkerjr.gameserver
Enum GameServer.Request

java.lang.Object
  extended by java.lang.Enum<GameServer.Request>
      extended by net.barkerjr.gameserver.GameServer.Request
All Implemented Interfaces:
Serializable, Comparable<GameServer.Request>
Enclosing class:
GameServer

public static enum GameServer.Request
extends Enum<GameServer.Request>

The type of request to place

Since:
2007-11-10
Author:
BarkerJr

Enum Constant Summary
BASIC
          Very basic server information
CHALLENGE
          A challenge key, used internally in other requests.
INFORMATION
          General server information
PLAYERS
          The list of players and their scores
PLUGIN
          Don't request this, as all plugins are loaded automatically.
RULES
          The list of server rules and cvars
 
Method Summary
static GameServer.Request valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GameServer.Request[] 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

CHALLENGE

public static final GameServer.Request CHALLENGE
A challenge key, used internally in other requests. You will not need to use this.

Since:
2007-11-10

BASIC

public static final GameServer.Request BASIC
Very basic server information

Since:
2007-11-18

INFORMATION

public static final GameServer.Request INFORMATION
General server information

Since:
2007-11-10

PLAYERS

public static final GameServer.Request PLAYERS
The list of players and their scores

Since:
2007-11-10

RULES

public static final GameServer.Request RULES
The list of server rules and cvars

Since:
2007-11-10

PLUGIN

public static final GameServer.Request PLUGIN
Don't request this, as all plugins are loaded automatically. This is only used in the Listener methods.

Since:
2007-11-28
Method Detail

values

public static GameServer.Request[] 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 (GameServer.Request c : GameServer.Request.values())
    System.out.println(c);

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

valueOf

public static GameServer.Request 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