flex.messaging.io.amf
Class AmfTrace

java.lang.Object
  extended by flex.messaging.util.ObjectTrace
      extended by flex.messaging.io.amf.AmfTrace

public class AmfTrace
extends ObjectTrace

The AMFTrace class is an AMF extension to the ObjectTrace utility to format AMF input/output in a similar manner to the client-side NetConnection Debugger. Note that in this version new lines are added after the individual values in complex type properties automatically.


Field Summary
 
Fields inherited from class flex.messaging.util.ObjectTrace
newLine, nextElementExclude
 
Constructor Summary
AmfTrace()
          Default constructor.
 
Method Summary
 void endAMFArray()
          Ends a ByteArray.
 void endAMFObject()
          Ends an AMFObject.
 void endCommand()
          Ends the command.
 void endHeader()
          Ends the header.
 void endMessage()
          Ends the message.
 void startAMFArray(int ref)
          Starts an AMF array.
 void startAMFObject(String type, int ref)
          Starts an AMFObject.
 void startByteArray(int ref, int length)
          Starts a ByteArrray.
 void startCommand(Object cmd, int iCmd, Object trxId)
          Starts a command.
 void startECMAArray(int ref)
          Starts an ECMA array.
 void startExternalizableObject(String type, int ref)
          Starts an ExternalizableObject.
 void startHeader(String name, boolean mustUnderstand, int index)
          Starts a header.
 void startMessage(String targetURI, String responseURI, int index)
          Starts a message.
 void startRequest(String message)
          Starts a request with the message.
 void startResponse(String message)
          Starts a response with the message.
 void version(int version)
          Adds the version to the buffer.
 void write(boolean b)
          Writes a boolean type.
 void write(byte b)
          Writes a byte type.
 void write(double d)
          Writes a double type.
 void write(float f)
          Writes a float type.
 void write(int i)
          Writes an integer type.
 void write(long l)
          Writes a long type.
 void write(Object o)
          Writes an Object type.
 void write(short s)
          Writes a short type.
 void writeNull()
          Writes a null type.
 void writeRef(int ref)
          Writes a ref type.
 void writeString(String s)
          Writes a String type.
 void writeStringRef(int ref)
          Writes a String ref type.
 void writeTraitsInfoRef(int ref)
          Writes a traits info type.
 void writeUndefined()
          Writes an undefined type.
 
Methods inherited from class flex.messaging.util.ObjectTrace
arrayElement, endArray, endObject, namedElement, newLine, startArray, startObject, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AmfTrace

public AmfTrace()
Default constructor.

Method Detail

startRequest

public void startRequest(String message)
Starts a request with the message.

Parameters:
message - start message string

startResponse

public void startResponse(String message)
Starts a response with the message.

Parameters:
message - start response string

version

public void version(int version)
Adds the version to the buffer.

Parameters:
version - the current version

startHeader

public void startHeader(String name,
                        boolean mustUnderstand,
                        int index)
Starts a header.

Parameters:
name - header name
mustUnderstand - mustUnderstand value
index - header number

endHeader

public void endHeader()
Ends the header.


startCommand

public void startCommand(Object cmd,
                         int iCmd,
                         Object trxId)
Starts a command.

Parameters:
cmd - command object
iCmd - command index
trxId - transaction id

endCommand

public void endCommand()
Ends the command.


startMessage

public void startMessage(String targetURI,
                         String responseURI,
                         int index)
Starts a message.

Parameters:
targetURI - the target URI
responseURI - the response URI
index - the message number

endMessage

public void endMessage()
Ends the message.


write

public void write(Object o)
Writes an Object type.

Overrides:
write in class ObjectTrace

write

public void write(boolean b)
Writes a boolean type.

Parameters:
b - value to write

write

public void write(double d)
Writes a double type.

Parameters:
d - value to write

write

public void write(float f)
Writes a float type.

Parameters:
f - value to write

write

public void write(int i)
Writes an integer type.

Parameters:
i - value to write

write

public void write(long l)
Writes a long type.

Parameters:
l - value to write

write

public void write(short s)
Writes a short type.

Parameters:
s - value to write

write

public void write(byte b)
Writes a byte type.

Parameters:
b - value to write.

writeNull

public void writeNull()
Writes a null type.

Overrides:
writeNull in class ObjectTrace

writeRef

public void writeRef(int ref)
Writes a ref type.

Overrides:
writeRef in class ObjectTrace

writeString

public void writeString(String s)
Writes a String type.

Overrides:
writeString in class ObjectTrace

writeStringRef

public void writeStringRef(int ref)
Writes a String ref type.

Parameters:
ref - string reference number

writeTraitsInfoRef

public void writeTraitsInfoRef(int ref)
Writes a traits info type.

Parameters:
ref - trait reference number

writeUndefined

public void writeUndefined()
Writes an undefined type.


startAMFArray

public void startAMFArray(int ref)
Starts an AMF array.

Parameters:
ref - the array reference number

startECMAArray

public void startECMAArray(int ref)
Starts an ECMA array.

Parameters:
ref - the array reference number

startByteArray

public void startByteArray(int ref,
                           int length)
Starts a ByteArrray.

Parameters:
ref - array reference number
length - length of the array

endAMFArray

public void endAMFArray()
Ends a ByteArray.


startExternalizableObject

public void startExternalizableObject(String type,
                                      int ref)
Starts an ExternalizableObject.

Parameters:
type - the type of the object
ref - the object number

startAMFObject

public void startAMFObject(String type,
                           int ref)
Starts an AMFObject.

Parameters:
type - the type of the object
ref - the reference number

endAMFObject

public void endAMFObject()
Ends an AMFObject.



Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/io/amf/AmfTrace.html