org.openmobileis.synchro.openmsp.protocol
Class RequestCommand

java.lang.Object
  extended byorg.openmobileis.synchro.openmsp.protocol.AbstractCommand
      extended byorg.openmobileis.synchro.openmsp.protocol.RequestCommand
All Implemented Interfaces:
Element, OpenMISSerializable, java.io.Serializable
Direct Known Subclasses:
Command

public class RequestCommand
extends AbstractCommand
implements Element

Title: OpenMobileIS project source
Description: Request command class manages the following commands : Sync, Map In fact, it manages all request commands which not use source and target attributes Request commands manages optional meta information and a credential

Since:
JDK 1.1
Version:
1.0.
Author:
Philippe Delrieu
See Also:
Serialized Form

Field Summary
protected  java.lang.String[] credential
           
protected  java.lang.String metaInfo
           
 
Fields inherited from class org.openmobileis.synchro.openmsp.protocol.AbstractCommand
cmdId, commandType
 
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
RequestCommand(int commandType)
           
 
Method Summary
 java.lang.String[] getCrendential()
           
 java.lang.String getMetaInformation()
           
 void setCredential(java.lang.String meta, java.lang.String data)
           
 void setCredentialData(java.lang.String data)
           
 void setCredentialMeta(java.lang.String meta)
           
 void setMetaInformation(java.lang.String meta)
           
 java.lang.String toString()
           
 void writeContent(java.lang.StringBuffer buffer)
          Implements Element interface
 
Methods inherited from class org.openmobileis.synchro.openmsp.protocol.AbstractCommand
getCmdId, getElementType, hasCommandId, hasCommmandId, setCmdId, setCmdRef, setData, setElementType, setSource, setSourceRef, setSourceSessionID, setTarget, 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, setData, setElementType, setSource, setSourceRef, setSourceSessionID, setTarget, setTargetRef, writeBeginTag, writeEndTag
 

Field Detail

credential

protected java.lang.String[] credential

metaInfo

protected java.lang.String metaInfo
Constructor Detail

RequestCommand

public RequestCommand(int commandType)
Method Detail

setCredential

public void setCredential(java.lang.String meta,
                          java.lang.String data)

setCredentialMeta

public void setCredentialMeta(java.lang.String meta)
Specified by:
setCredentialMeta in interface Element
Overrides:
setCredentialMeta in class AbstractCommand

setCredentialData

public void setCredentialData(java.lang.String data)
Specified by:
setCredentialData in interface Element
Overrides:
setCredentialData in class AbstractCommand

getCrendential

public java.lang.String[] getCrendential()

getMetaInformation

public java.lang.String getMetaInformation()

setMetaInformation

public void setMetaInformation(java.lang.String meta)
Specified by:
setMetaInformation in interface Element
Overrides:
setMetaInformation in class AbstractCommand

toString

public java.lang.String toString()
Overrides:
toString in class AbstractCommand

writeContent

public void writeContent(java.lang.StringBuffer buffer)
Implements Element interface

Specified by:
writeContent in interface Element
Overrides:
writeContent in class AbstractCommand


Copyright 2006 OpenMobileIS. All Rights Reserved.