Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

org.openmobileis.synchro.openmsp.protocol.AbstractCommand Class Reference

Inheritance diagram for org.openmobileis.synchro.openmsp.protocol.AbstractCommand:

org.openmobileis.synchro.openmsp.protocol.Element org.openmobileis.common.util.OpenMISSerializable org.openmobileis.synchro.openmsp.protocol.RequestCommand org.openmobileis.synchro.openmsp.protocol.ResponseCommand org.openmobileis.synchro.openmsp.protocol.Sequence org.openmobileis.synchro.openmsp.protocol.Command org.openmobileis.synchro.openmsp.protocol.Result org.openmobileis.synchro.openmsp.protocol.Status List of all members.

Detailed Description

Title: OpenMobileIS project source
Description: Superclass for OpenMSP commands : Get, Sync, Add, Delete, Replace, Map, Sequence, Result, Status An abstract command has a type (See Element for the command list) and a command id.

See Message and MessageFactory to have example for building commands Direct subclass : RequestCommand, ResponseCommand, Sequence

Author:
Philippe Delrieu
Since:
JDK 1.1
Version:
1.0.
See also:
: Message

: MessageFactory

: RequestCommand

: ResponseCommand

: Sequence

Definition at line 45 of file AbstractCommand.java.

Public Member Functions

 AbstractCommand (int commandType)
int getElementType ()
int getCmdId ()
boolean hasCommmandId ()
String toString ()
boolean hasCommandId ()
void setCmdId (int cmdId)
void setElementType (int elementType)
void setCredentialData (String data)
void setCredentialMeta (String meta)
void setSource (String source)
void setSourceSessionID (long sessionID)
void setTarget (String target)
void setMetaInformation (String meta)
void setCmdRef (int cmdRef)
void setSourceRef (String source)
void setTargetRef (String target)
void setData (String data)
void writeBeginTag (StringBuffer buffer)
void writeContent (StringBuffer buffer)
void writeEndTag (StringBuffer buffer)

Protected Attributes

int commandType
int cmdId = 0

Static Package Attributes

static final long serialVersionUID = 1L
 Set version of the serialized data to make it compatible with new class versions.


The documentation for this class was generated from the following file:
Generated on Wed Dec 14 21:05:40 2005 for OpenMobileIS by  doxygen 1.4.4