6.2.3 JSMCommand Interface
public interface JSMCommand
{
public final static String SERVICE_LOAD = "SERVICE_LOAD" ;
public final static String SERVICE_UNLOAD = "SERVICE_UNLOAD" ;
public final static String SERVICE_READ = "SERVICE_READ" ;
public final static String SERVICE_GET = "SERVICE_GET" ;
public final static String SERVICE_SET = "SERVICE_SET" ;
public final static String SERVICE_RECLAIM = "SERVICE_RECLAIM" ;
public final static int HTTP_CONTEXT_UNKNOWN = 0 ;
public final static int HTTP_CONTEXT_NONE = 1 ; // Interactive
public final static int HTTP_CONTEXT_CONNECT = 2 ; // HTTP connect
public final static int HTTP_CONTEXT_REQUEST = 3 ; // HTTP request
public final static int HTTP_CONTEXT_KEYWORDS = 4 ; // HTTP keywords
public String getCommand () ;
public JSMList getList () ;
public JSMFieldList getFieldList () ;
public JSMClient getClient () ;
public byte[] getByteArray () ;
public Enumeration getKeywords () ;
public String getKeywordValue ( String key ) ;
public boolean isHTTP () ;
public int getHTTPContext () ;
public Enumeration getHTTPKeywords () ;
public String getHTTPKeywordValue ( String key ) ;
public boolean equals ( String command ) ;
}
- The command object is the Java object equivalent of the command string sent by the JSM client.
- The String object returned from the getCommand method is the command name.
- The equals method can be used to check the name of a command.
- The byte array object returned by the getByteArray method is the byte array sent by the JSM client.
- The JSMList object returned by the getList method is the working list sent by the JSM client.
- The JSMFieldList object returned by the getFieldList is the field list sent by the JSM client.
- The Enumeration object returned by the getKeywords method is an enumeration of the command keywords.
- The String value returned from the getKeywordValue method is the value associated with the keyword.
- The Enumeration object returned by the getHTTPKeywords method is an enumeration of the HTTP keywords.
- The String value returned from the getHTTPKeywordValue method is the value associated with the HTTP keyword.
For more information, refer to Command.