org.openmobileis.synchro.openmsp.protocol
Class Command
java.lang.Object
org.openmobileis.synchro.openmsp.protocol.AbstractCommand
org.openmobileis.synchro.openmsp.protocol.RequestCommand
org.openmobileis.synchro.openmsp.protocol.Command
- All Implemented Interfaces:
- Element, OpenMISSerializable, java.io.Serializable
- public class Command
- extends RequestCommand
- implements Element
Title: OpenMobileIS project source
Description: Represents Add, Delete, Replace commands
- Since:
- JDK 1.1
- Version:
- 1.0.
- Author:
- Philippe Delrieu
- See Also:
- Serialized Form
Field Summary |
protected long |
sessionID
|
protected java.lang.String |
source
|
protected java.lang.String |
target
|
Fields inherited from interface org.openmobileis.synchro.openmsp.protocol.Element |
ADD, DELETE, FINAL, GET, HEADER, ITEM, MAP, MAP_ITEM, REPLACE, RESULT, SEQUENCE, STATUS, SYNC |
Constructor Summary |
protected |
Command(int commandType)
|
|
Command(int commandType,
java.lang.String source,
java.lang.String target)
|
Methods inherited from class org.openmobileis.synchro.openmsp.protocol.AbstractCommand |
getCmdId, getElementType, hasCommandId, hasCommmandId, setCmdId, setCmdRef, setData, setElementType, setSourceRef, setTargetRef, writeBeginTag, writeEndTag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.openmobileis.synchro.openmsp.protocol.Element |
getCmdId, getElementType, hasCommmandId, setCmdId, setCmdRef, setCredentialData, setCredentialMeta, setData, setElementType, setMetaInformation, setSourceRef, setTargetRef, writeBeginTag, writeEndTag |
target
protected java.lang.String target
sessionID
protected long sessionID
source
protected java.lang.String source
Command
protected Command(int commandType)
Command
public Command(int commandType,
java.lang.String source,
java.lang.String target)
getTarget
public java.lang.String getTarget()
getSource
public java.lang.String getSource()
getSourceSessionID
public long getSourceSessionID()
- return the optional sessionID of source element. If not present return -1.
setSource
public void setSource(java.lang.String source)
- Specified by:
setSource
in interface Element
- Overrides:
setSource
in class AbstractCommand
setTarget
public void setTarget(java.lang.String target)
- Specified by:
setTarget
in interface Element
- Overrides:
setTarget
in class AbstractCommand
setSourceSessionID
public void setSourceSessionID(long sessionid)
- Specified by:
setSourceSessionID
in interface Element
- Overrides:
setSourceSessionID
in class AbstractCommand
toString
public java.lang.String toString()
- Overrides:
toString
in class RequestCommand
writeContent
public void writeContent(java.lang.StringBuffer buffer)
- Implements Element interface
- Specified by:
writeContent
in interface Element
- Overrides:
writeContent
in class RequestCommand
Copyright 2006 OpenMobileIS. All Rights Reserved.