org.opengts.db
Interface CustomCommand


public interface CustomCommand


Field Summary
static java.lang.String ARG_SEPARATOR
           
static char ARG_SEPARATOR_CHAR
           
 
Method Summary
 byte[] handleCommand(java.lang.String cmdID, java.lang.String cmdArg, Account account, User user, BasicPrivateLabel bpl, java.lang.String respType)
          Callback to handle custom web-service commands.
 

Field Detail

ARG_SEPARATOR

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

ARG_SEPARATOR_CHAR

static final char ARG_SEPARATOR_CHAR
See Also:
Constant Field Values
Method Detail

handleCommand

byte[] handleCommand(java.lang.String cmdID,
                     java.lang.String cmdArg,
                     Account account,
                     User user,
                     BasicPrivateLabel bpl,
                     java.lang.String respType)
Callback to handle custom web-service commands. device communication server.

Parameters:
cmdID - The command id
cmdArg - The command argument string
account - The current Account instance
user - The current User instance
bpl - The context BasicPrivateLabel (if available)
respType - The expect response type (ie. "xml", "json", "csv", etc).
Returns:
The response which will be sent back to the requestor