org.granite.messaging.amf
Class AMF0Body

java.lang.Object
  extended by org.granite.messaging.amf.AMF0Body
All Implemented Interfaces:
Serializable

public class AMF0Body
extends Object
implements Serializable

AMF Body

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

Field Summary
static byte DATA_TYPE_AMF3_OBJECT
          AMF3 data
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  String response
           
protected  String serviceMethodName
           
protected  String serviceName
           
protected  String target
           
protected  byte type
           
protected  Object value
           
 
Constructor Summary
AMF0Body(String target, String response, Object value)
          AMF body with unknown type
AMF0Body(String target, String response, Object value, byte type)
          AMF Body constructor
 
Method Summary
 int getBodyIndex()
           
static String getObjectTypeDescription(byte type)
          Returns String description of object type
 String getResponse()
           
 String getServiceMethodName()
           
 String getServiceName()
           
 String getTarget()
           
 byte getType()
          Returns object type
 Object getValue()
           
 boolean isFirstBody()
           
 void setResponse(String response)
           
 void setTarget(String target)
           
 void setType(byte type)
          Sets object type
 void setValue(Object value)
           
 String toString()
           
 String toString(String indent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

target

protected String target

serviceName

protected String serviceName

serviceMethodName

protected String serviceMethodName

response

protected String response

value

protected 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

DATA_TYPE_AMF3_OBJECT

public static final byte DATA_TYPE_AMF3_OBJECT
AMF3 data

See Also:
Constant Field Values
Constructor Detail

AMF0Body

public AMF0Body(String target,
                String response,
                Object value)
AMF body with unknown type

Parameters:
target -
response -
value -

AMF0Body

public AMF0Body(String target,
                String response,
                Object value,
                byte type)
AMF Body constructor

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

getTarget

public String getTarget()

setTarget

public void setTarget(String target)

getServiceName

public String getServiceName()

getServiceMethodName

public String getServiceMethodName()

getResponse

public String getResponse()

setResponse

public void setResponse(String response)

isFirstBody

public boolean isFirstBody()

getBodyIndex

public int getBodyIndex()

getValue

public Object getValue()

setValue

public void setValue(Object value)

getType

public byte getType()
Returns object type

Returns:
the object type.

setType

public void setType(byte type)
Sets object type

Parameters:
type -

getObjectTypeDescription

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

Parameters:
type - object type
Returns:
the object type description

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(String indent)