org.opengts.war.ctracgts
Class HandleCommand

java.lang.Object
  extended by org.opengts.war.ctracgts.HandleCommand

public class HandleCommand
extends java.lang.Object


Field Summary
static char ARG_SEPARATOR_CHAR
           
static java.lang.String[] COMMAND_CTVers
           
static java.lang.String[] COMMAND_Custom_
           
static java.lang.String[] COMMAND_CustomConfig
           
static java.lang.String[] COMMAND_DeviceCommand
           
static java.lang.String[] COMMAND_DeviceGroups
           
static java.lang.String[] COMMAND_DeviceList
           
static java.lang.String[] COMMAND_DeviceStatus
           
static java.lang.String[] COMMAND_Events
           
static java.lang.String[] COMMAND_Geozones
           
static java.lang.String[] COMMAND_JSON
           
static java.lang.String[] COMMAND_Locate
           
static java.lang.String[] COMMAND_Login
           
static java.lang.String[] COMMAND_MobileID
           
static java.lang.String[] COMMAND_Park
           
static java.lang.String[] COMMAND_SetDeviceName
           
static java.lang.String[] COMMAND_Unpark
           
static java.lang.String[] COMMAND_User
           
static java.lang.String[] COMMAND_Version
           
static java.util.Random RANDOMIZER
           
static java.lang.String TAG_Arg
           
static java.lang.String TAG_Args
           
static java.lang.String TAG_Auth
           
static java.lang.String TAG_Command
           
static java.lang.String TAG_DormantInterval
           
static java.lang.String TAG_EncodeArgs
           
static java.lang.String TAG_Geozones
           
static java.lang.String TAG_GroupID
           
static java.lang.String TAG_GroupName
           
static java.lang.String TAG_ID
           
static java.lang.String TAG_ImpromptuStatusCodes
           
static java.lang.String TAG_MinimumTransmitInterval
           
static java.lang.String TAG_MovingInterval
           
static java.lang.String TAG_Protocol
           
static java.lang.String TAG_Server
           
static java.lang.String TAG_Version
           
static java.lang.String TAG_ZoneID
           
static java.lang.String TAG_ZoneName
           
static java.lang.String TAG_ZonePoints
           
static java.lang.String TAG_ZoneRadius
           
static java.lang.String TAG_ZoneType
           
 
Constructor Summary
HandleCommand()
           
 
Method Summary
static java.lang.String Arg(java.lang.String[] args, int ndx)
           
static java.lang.String Arg(java.lang.String[] args, int ndx, java.lang.String dft)
           
static GeoPoint ArgGeoPoint(java.lang.String[] args, int ndx)
           
static java.lang.String Exec(javax.servlet.http.HttpServletRequest request, java.lang.String respType, java.lang.String appNameVers, java.lang.String gtcNameVers, java.lang.String gtcID, java.lang.String command, java.lang.String commandArg, java.lang.String authPin, java.lang.String accountID, java.lang.String userID, java.lang.String password, boolean loginEnabled, java.lang.String mobileID, java.lang.String deviceID)
          Command handling
static java.lang.String InitCustomCommandHandler()
          Initialize CustomCommand handler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RANDOMIZER

public static java.util.Random RANDOMIZER

ARG_SEPARATOR_CHAR

public static final char ARG_SEPARATOR_CHAR
See Also:
Constant Field Values

TAG_Command

public static final java.lang.String TAG_Command
See Also:
Constant Field Values

TAG_ID

public static final java.lang.String TAG_ID
See Also:
Constant Field Values

TAG_Arg

public static final java.lang.String TAG_Arg
See Also:
Constant Field Values

TAG_Args

public static final java.lang.String TAG_Args
See Also:
Constant Field Values

TAG_GroupID

public static final java.lang.String TAG_GroupID
See Also:
Constant Field Values

TAG_GroupName

public static final java.lang.String TAG_GroupName
See Also:
Constant Field Values

TAG_Server

public static final java.lang.String TAG_Server
See Also:
Constant Field Values

TAG_Version

public static final java.lang.String TAG_Version
See Also:
Constant Field Values

TAG_Protocol

public static final java.lang.String TAG_Protocol
See Also:
Constant Field Values

TAG_EncodeArgs

public static final java.lang.String TAG_EncodeArgs
See Also:
Constant Field Values

TAG_ImpromptuStatusCodes

public static final java.lang.String TAG_ImpromptuStatusCodes
See Also:
Constant Field Values

TAG_Auth

public static final java.lang.String TAG_Auth
See Also:
Constant Field Values

TAG_MinimumTransmitInterval

public static final java.lang.String TAG_MinimumTransmitInterval
See Also:
Constant Field Values

TAG_MovingInterval

public static final java.lang.String TAG_MovingInterval
See Also:
Constant Field Values

TAG_DormantInterval

public static final java.lang.String TAG_DormantInterval
See Also:
Constant Field Values

TAG_Geozones

public static final java.lang.String TAG_Geozones
See Also:
Constant Field Values

TAG_ZoneID

public static final java.lang.String TAG_ZoneID
See Also:
Constant Field Values

TAG_ZoneName

public static final java.lang.String TAG_ZoneName
See Also:
Constant Field Values

TAG_ZoneType

public static final java.lang.String TAG_ZoneType
See Also:
Constant Field Values

TAG_ZoneRadius

public static final java.lang.String TAG_ZoneRadius
See Also:
Constant Field Values

TAG_ZonePoints

public static final java.lang.String TAG_ZonePoints
See Also:
Constant Field Values

COMMAND_JSON

public static final java.lang.String[] COMMAND_JSON

COMMAND_Events

public static final java.lang.String[] COMMAND_Events

COMMAND_CTVers

public static final java.lang.String[] COMMAND_CTVers

COMMAND_Version

public static final java.lang.String[] COMMAND_Version

COMMAND_MobileID

public static final java.lang.String[] COMMAND_MobileID

COMMAND_Login

public static final java.lang.String[] COMMAND_Login

COMMAND_User

public static final java.lang.String[] COMMAND_User

COMMAND_DeviceList

public static final java.lang.String[] COMMAND_DeviceList

COMMAND_DeviceStatus

public static final java.lang.String[] COMMAND_DeviceStatus

COMMAND_DeviceGroups

public static final java.lang.String[] COMMAND_DeviceGroups

COMMAND_SetDeviceName

public static final java.lang.String[] COMMAND_SetDeviceName

COMMAND_Custom_

public static final java.lang.String[] COMMAND_Custom_

COMMAND_CustomConfig

public static final java.lang.String[] COMMAND_CustomConfig

COMMAND_Park

public static final java.lang.String[] COMMAND_Park

COMMAND_Unpark

public static final java.lang.String[] COMMAND_Unpark

COMMAND_Locate

public static final java.lang.String[] COMMAND_Locate

COMMAND_DeviceCommand

public static final java.lang.String[] COMMAND_DeviceCommand

COMMAND_Geozones

public static final java.lang.String[] COMMAND_Geozones
Constructor Detail

HandleCommand

public HandleCommand()
Method Detail

Arg

public static java.lang.String Arg(java.lang.String[] args,
                                   int ndx,
                                   java.lang.String dft)

Arg

public static java.lang.String Arg(java.lang.String[] args,
                                   int ndx)

ArgGeoPoint

public static GeoPoint ArgGeoPoint(java.lang.String[] args,
                                   int ndx)

InitCustomCommandHandler

public static java.lang.String InitCustomCommandHandler()
Initialize CustomCommand handler

Returns:
The name of the CustomCommand class installed, if successful.

Exec

public static java.lang.String Exec(javax.servlet.http.HttpServletRequest request,
                                    java.lang.String respType,
                                    java.lang.String appNameVers,
                                    java.lang.String gtcNameVers,
                                    java.lang.String gtcID,
                                    java.lang.String command,
                                    java.lang.String commandArg,
                                    java.lang.String authPin,
                                    java.lang.String accountID,
                                    java.lang.String userID,
                                    java.lang.String password,
                                    boolean loginEnabled,
                                    java.lang.String mobileID,
                                    java.lang.String deviceID)
Command handling