org.openmobileis.synchro.openmsp.protocol
Class Status

java.lang.Object
  extended byorg.openmobileis.synchro.openmsp.protocol.AbstractCommand
      extended byorg.openmobileis.synchro.openmsp.protocol.ResponseCommand
          extended byorg.openmobileis.synchro.openmsp.protocol.Status
All Implemented Interfaces:
Element, OpenMISSerializable, java.io.Serializable

public class Status
extends ResponseCommand
implements Element

Title: OpenMobileIS project source
Description: Set a status for request command

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

Field Summary
protected  int status
           
static int STATUS_AUTHENTIFICATION_REQUIRED
           
static int STATUS_COMMAND_NOT_IMPLEMENTED
           
static int STATUS_DEVICE_FULL
           
static int STATUS_EXIST_TARGET
           
static int STATUS_FAILED
           
static int STATUS_NO_CONTENT
           
static int STATUS_NOT_FOUND
           
static int STATUS_OK
           
static int STATUS_PARTIAL_CONTENT
           
static int STATUS_SYNC_IN_PROGRESS
           
static int STATUS_SYNCHRO_CONFLIC
           
static int STATUS_TOO_LARGE
           
static int STATUS_UNAUTHORIZED
           
static int STATUS_UNSUPPORTED_MEDIA
           
static int STATUS_WRONG_FORMAT
           
 
Fields inherited from class org.openmobileis.synchro.openmsp.protocol.ResponseCommand
cmdRef
 
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
protected Status()
           
  Status(int cmdRef, int status)
           
 
Method Summary
 int getStatus()
           
 boolean isAtomic()
          Implements Element interface
 void setData(java.lang.String data)
           
 java.lang.String toString()
           
 void writeContent(java.lang.StringBuffer buffer)
           
 
Methods inherited from class org.openmobileis.synchro.openmsp.protocol.ResponseCommand
getCmdRef, setCmdRef
 
Methods inherited from class org.openmobileis.synchro.openmsp.protocol.AbstractCommand
getCmdId, getElementType, hasCommandId, hasCommmandId, setCmdId, setCredentialData, setCredentialMeta, setElementType, setMetaInformation, 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, setCredentialData, setCredentialMeta, setElementType, setMetaInformation, setSource, setSourceRef, setSourceSessionID, setTarget, setTargetRef, writeBeginTag, writeEndTag
 

Field Detail

STATUS_SYNC_IN_PROGRESS

public static final int STATUS_SYNC_IN_PROGRESS
See Also:
Constant Field Values

STATUS_OK

public static final int STATUS_OK
See Also:
Constant Field Values

STATUS_NO_CONTENT

public static final int STATUS_NO_CONTENT
See Also:
Constant Field Values

STATUS_PARTIAL_CONTENT

public static final int STATUS_PARTIAL_CONTENT
See Also:
Constant Field Values

STATUS_WRONG_FORMAT

public static final int STATUS_WRONG_FORMAT
See Also:
Constant Field Values

STATUS_UNAUTHORIZED

public static final int STATUS_UNAUTHORIZED
See Also:
Constant Field Values

STATUS_NOT_FOUND

public static final int STATUS_NOT_FOUND
See Also:
Constant Field Values

STATUS_AUTHENTIFICATION_REQUIRED

public static final int STATUS_AUTHENTIFICATION_REQUIRED
See Also:
Constant Field Values

STATUS_TOO_LARGE

public static final int STATUS_TOO_LARGE
See Also:
Constant Field Values

STATUS_UNSUPPORTED_MEDIA

public static final int STATUS_UNSUPPORTED_MEDIA
See Also:
Constant Field Values

STATUS_EXIST_TARGET

public static final int STATUS_EXIST_TARGET
See Also:
Constant Field Values

STATUS_DEVICE_FULL

public static final int STATUS_DEVICE_FULL
See Also:
Constant Field Values

STATUS_FAILED

public static final int STATUS_FAILED
See Also:
Constant Field Values

STATUS_COMMAND_NOT_IMPLEMENTED

public static final int STATUS_COMMAND_NOT_IMPLEMENTED
See Also:
Constant Field Values

STATUS_SYNCHRO_CONFLIC

public static final int STATUS_SYNCHRO_CONFLIC
See Also:
Constant Field Values

status

protected int status
Constructor Detail

Status

protected Status()

Status

public Status(int cmdRef,
              int status)
Method Detail

getStatus

public int getStatus()

toString

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

isAtomic

public boolean isAtomic()
Implements Element interface


setData

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

writeContent

public void writeContent(java.lang.StringBuffer buffer)
Specified by:
writeContent in interface Element
Overrides:
writeContent in class ResponseCommand


Copyright 2006 OpenMobileIS. All Rights Reserved.