src.server
Class ServerQuery

java.lang.Object
  extended bysrc.server.Package
      extended bysrc.server.QueryPackage
          extended bysrc.server.ServerQuery

public class ServerQuery
extends QueryPackage

Describes a query that is to be processed by the Server directly. I.e. not by a module. The queries can for instance be to register an user for specific alerts.

Version:
2005-apr-20

Field Summary
static int ALERT_DEREG
           
static int ALERT_LIST
           
static int ALERT_REG
           
static int HELP
           
static int SET_SETTING
           
static int UNKNOWN
           
static int USER_DEREG
           
static int USER_REG
           
 
Constructor Summary
ServerQuery(RecipientTag recipient, java.util.HashMap queryParameters, int opCode)
          Creates a ServerQuery.
 
Method Summary
 int getOpCode()
          Gets the opCode for the query.
 java.lang.String toString()
           
 
Methods inherited from class src.server.QueryPackage
getQueryParameters
 
Methods inherited from class src.server.Package
getRecipientTag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
See Also:
Constant Field Values

ALERT_DEREG

public static final int ALERT_DEREG
See Also:
Constant Field Values

ALERT_REG

public static final int ALERT_REG
See Also:
Constant Field Values

USER_DEREG

public static final int USER_DEREG
See Also:
Constant Field Values

USER_REG

public static final int USER_REG
See Also:
Constant Field Values

ALERT_LIST

public static final int ALERT_LIST
See Also:
Constant Field Values

HELP

public static final int HELP
See Also:
Constant Field Values

SET_SETTING

public static final int SET_SETTING
See Also:
Constant Field Values
Constructor Detail

ServerQuery

public ServerQuery(RecipientTag recipient,
                   java.util.HashMap queryParameters,
                   int opCode)
Creates a ServerQuery.

Parameters:
recipient - The tag detailing the owner of the package.
opCode - The opCode of the query.
Method Detail

getOpCode

public int getOpCode()
Gets the opCode for the query. The opCode's value is defined by the class and the operation can therefor be matched to e.g. ALERT_REG.

Returns:
The operation code.

toString

public java.lang.String toString()
Overrides:
toString in class QueryPackage