org.openamf
Class AMFBody

java.lang.Object
  extended byorg.openamf.AMFBody
All Implemented Interfaces:
java.io.Serializable

public class AMFBody
extends java.lang.Object
implements java.io.Serializable

AMF Body

Version:
$Revision: 1.19 $, $Date: 2003/09/20 01:05:24 $
Author:
Jason Calabrese , Pat Maddox
See Also:
AMFHeader, AMFMessage, Serialized Form

Field Summary
static byte DATA_TYPE_ARRAY
          Array Object type
static byte DATA_TYPE_AS_OBJECT
          General Object type
static byte DATA_TYPE_BOOLEAN
          Boolean object type
static byte DATA_TYPE_CUSTOM_CLASS
          Custom class object type
static byte DATA_TYPE_DATE
          Date object type
static byte DATA_TYPE_LONG_STRING
          Long String object type
static byte DATA_TYPE_MIXED_ARRAY
          Mixed Array Object type
static byte DATA_TYPE_MOVIE_CLIP
          Movie clip object type
static byte DATA_TYPE_NULL
          NULL object type
static byte DATA_TYPE_NUMBER
          Number object type
static byte DATA_TYPE_OBJECT
          Object object type
static byte DATA_TYPE_OBJECT_END
          Object end type
static byte DATA_TYPE_RECORDSET
          RecordSet object type
static byte DATA_TYPE_REFERENCE_OBJECT
          Reference object type
static byte DATA_TYPE_STRING
          String object type
static byte DATA_TYPE_UNDEFINED
          Undefined object type
static byte DATA_TYPE_UNKNOWN
          Unknow object type
static byte DATA_TYPE_XML
          XML Document object type
protected  java.lang.String response
           
protected  java.lang.String serviceMethodName
           
protected  java.lang.String serviceName
           
protected  java.lang.String target
           
protected  byte type
           
protected  java.lang.Object value
           
 
Constructor Summary
AMFBody(java.lang.String target, java.lang.String response, java.lang.Object value)
          AMF body with unknown type
AMFBody(java.lang.String target, java.lang.String response, java.lang.Object value, byte type)
          AMF Body constructor
 
Method Summary
static java.lang.String getObjectTypeDescription(byte type)
          Returns String description of object type
 java.lang.String getResponse()
           
 java.lang.String getServiceMethodName()
           
 java.lang.String getServiceName()
           
 java.lang.String getTarget()
           
 byte getType()
          Returns object type
 java.lang.Object getValue()
           
 void setResponse(java.lang.String response)
           
 void setTarget(java.lang.String target)
           
 void setType(byte type)
          Sets object type
 void setValue(java.lang.Object value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

target

protected java.lang.String target

serviceName

protected java.lang.String serviceName

serviceMethodName

protected java.lang.String serviceMethodName

response

protected java.lang.String response

value

protected java.lang.Object value

type

protected byte type

DATA_TYPE_UNKNOWN

public static final byte DATA_TYPE_UNKNOWN
Unknow object type

See Also:
Constant Field Values

DATA_TYPE_NUMBER

public static final byte DATA_TYPE_NUMBER
Number object type

See Also:
Constant Field Values

DATA_TYPE_BOOLEAN

public static final byte DATA_TYPE_BOOLEAN
Boolean object type

See Also:
Constant Field Values

DATA_TYPE_STRING

public static final byte DATA_TYPE_STRING
String object type

See Also:
Constant Field Values

DATA_TYPE_OBJECT

public static final byte DATA_TYPE_OBJECT
Object object type

See Also:
Constant Field Values

DATA_TYPE_MOVIE_CLIP

public static final byte DATA_TYPE_MOVIE_CLIP
Movie clip object type

See Also:
Constant Field Values

DATA_TYPE_NULL

public static final byte DATA_TYPE_NULL
NULL object type

See Also:
Constant Field Values

DATA_TYPE_UNDEFINED

public static final byte DATA_TYPE_UNDEFINED
Undefined object type

See Also:
Constant Field Values

DATA_TYPE_REFERENCE_OBJECT

public static final byte DATA_TYPE_REFERENCE_OBJECT
Reference object type

See Also:
Constant Field Values

DATA_TYPE_MIXED_ARRAY

public static final byte DATA_TYPE_MIXED_ARRAY
Mixed Array Object type

See Also:
Constant Field Values

DATA_TYPE_OBJECT_END

public static final byte DATA_TYPE_OBJECT_END
Object end type

See Also:
Constant Field Values

DATA_TYPE_ARRAY

public static final byte DATA_TYPE_ARRAY
Array Object type

See Also:
Constant Field Values

DATA_TYPE_DATE

public static final byte DATA_TYPE_DATE
Date object type

See Also:
Constant Field Values

DATA_TYPE_LONG_STRING

public static final byte DATA_TYPE_LONG_STRING
Long String object type

See Also:
Constant Field Values

DATA_TYPE_AS_OBJECT

public static final byte DATA_TYPE_AS_OBJECT
General Object type

See Also:
Constant Field Values

DATA_TYPE_RECORDSET

public static final byte DATA_TYPE_RECORDSET
RecordSet object type

See Also:
Constant Field Values

DATA_TYPE_XML

public static final byte DATA_TYPE_XML
XML Document object type

See Also:
Constant Field Values

DATA_TYPE_CUSTOM_CLASS

public static final byte DATA_TYPE_CUSTOM_CLASS
Custom class object type

See Also:
Constant Field Values
Constructor Detail

AMFBody

public AMFBody(java.lang.String target,
               java.lang.String response,
               java.lang.Object value)
AMF body with unknown type

Parameters:
target -
response -
value -

AMFBody

public AMFBody(java.lang.String target,
               java.lang.String response,
               java.lang.Object value,
               byte type)
AMF Body constructor

Parameters:
target -
response -
value -
type -
Method Detail

getTarget

public java.lang.String getTarget()

setTarget

public void setTarget(java.lang.String target)

getServiceName

public java.lang.String getServiceName()

getServiceMethodName

public java.lang.String getServiceMethodName()

getResponse

public java.lang.String getResponse()

setResponse

public void setResponse(java.lang.String response)

getValue

public java.lang.Object getValue()

setValue

public void setValue(java.lang.Object value)

getType

public byte getType()
Returns object type

Returns:

setType

public void setType(byte type)
Sets object type

Parameters:
type -

getObjectTypeDescription

public static java.lang.String getObjectTypeDescription(byte type)
Returns String description of object type

Parameters:
type - object type
Returns:

toString

public java.lang.String toString()