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 flex.messaging.util.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
 
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 traints 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 -

startResponse

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

Parameters:
message -

version

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

Parameters:
version -

startHeader

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

Parameters:
name -
mustUnderstand -
index -

endHeader

public void endHeader()
Ends the header.


startCommand

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

Parameters:
cmd -
iCmd -
trxId -

endCommand

public void endCommand()
Ends the command.


startMessage

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

Parameters:
targetURI -
responseURI -
index -

endMessage

public void endMessage()
Ends the message.


write

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

Overrides:
write in class flex.messaging.util.ObjectTrace

write

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


write

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


write

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


write

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


write

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


write

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


write

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


writeNull

public void writeNull()
Writes a null type.

Overrides:
writeNull in class flex.messaging.util.ObjectTrace

writeRef

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

Overrides:
writeRef in class flex.messaging.util.ObjectTrace

writeString

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

Overrides:
writeString in class flex.messaging.util.ObjectTrace

writeStringRef

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


writeTraitsInfoRef

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


writeUndefined

public void writeUndefined()
Writes an undefined type.


startAMFArray

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

Parameters:
ref -

startECMAArray

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

Parameters:
ref -

startByteArray

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

Parameters:
ref -
length -

endAMFArray

public void endAMFArray()
Ends a ByteArray.


startExternalizableObject

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

Parameters:
type -
ref -

startAMFObject

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

Parameters:
type -
ref -

endAMFObject

public void endAMFObject()
Ends an AMFObject.



Copyright © 2007 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/livecycle/es/sdkHelp/programmer/lcdsjavadoc/flex/messaging/io/amf/AmfTrace.html