Packageflex.messaging.io.amf
Classpublic class AmfTrace
InheritanceAmfTrace Inheritance

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.



Public Methods
 MethodDefined By
  
Default constructor.
AmfTrace
  
Ends a ByteArray.
AmfTrace
  
Ends an AMFObject.
AmfTrace
  
void endCommand()
Ends the command.
AmfTrace
  
void endHeader()
Ends the header.
AmfTrace
  
void endMessage()
Ends the message.
AmfTrace
  
void startAMFArray(int ref)
Starts an AMF array.
AmfTrace
  
void startAMFObject(String type, int ref)
Starts an AMFObject.
AmfTrace
  
void startByteArray(int ref, int length)
Starts a ByteArrray.
AmfTrace
  
void startCommand(Object cmd, int iCmd, Object trxId)
Starts a command.
AmfTrace
  
void startECMAArray(int ref)
Starts an ECMA array.
AmfTrace
  
void startExternalizableObject(String type, int ref)
Starts an ExternalizableObject.
AmfTrace
  
void startHeader(String name, boolean mustUnderstand, int index)
Starts a header.
AmfTrace
  
void startMessage(String targetURI, String responseURI, int index)
Starts a message.
AmfTrace
  
void startRequest(String message)
Starts a request with the message.
AmfTrace
  
void startResponse(String message)
Starts a response with the message.
AmfTrace
  
void version(int version)
Adds the version to the buffer.
AmfTrace
  
void write(Object o)
Writes an Object type.
AmfTrace
  
void write(boolean b)
Writes a boolean type.
AmfTrace
  
void write(double d)
Writes a double type.
AmfTrace
  
void write(float f)
Writes a float type.
AmfTrace
  
void write(int i)
Writes an integer type.
AmfTrace
  
void write(long l)
Writes a long type.
AmfTrace
  
void write(short s)
Writes a short type.
AmfTrace
  
void write(byte b)
Writes a byte type.
AmfTrace
  
void writeNull()
Writes a null type.
AmfTrace
  
void writeRef(int ref)
Writes a ref type.
AmfTrace
  
void writeString(String s)
Writes a String type.
AmfTrace
  
void writeStringRef(int ref)
Writes a String ref type.
AmfTrace
  
void writeTraitsInfoRef(int ref)
Writes a traits info type.
AmfTrace
  
Writes an undefined type.
AmfTrace
Constructor Detail
AmfTrace()
public AmfTrace()

Default constructor.

Method Detail
endAMFArray()
public void endAMFArray()

Ends a ByteArray.

endAMFObject() 
public void endAMFObject()

Ends an AMFObject.

endCommand() 
public void endCommand()

Ends the command.

endHeader() 
public void endHeader()

Ends the header.

endMessage() 
public void endMessage()

Ends the message.

startAMFArray() 
public void startAMFArray(int ref)

Starts an AMF array.

Parameters

ref — the array reference number

startAMFObject() 
public void startAMFObject(String type, int ref)

Starts an AMFObject.

Parameters

type — the type of the object
 
ref — the reference number

startByteArray() 
public void startByteArray(int ref, int length)

Starts a ByteArrray.

Parameters

ref — array reference number
 
length — length of the array

startCommand() 
public void startCommand(Object cmd, int iCmd, Object trxId)

Starts a command.

Parameters

cmd — command object
 
iCmd — command index
 
trxId — transaction id

startECMAArray() 
public void startECMAArray(int ref)

Starts an ECMA array.

Parameters

ref — the array reference number

startExternalizableObject() 
public void startExternalizableObject(String type, int ref)

Starts an ExternalizableObject.

Parameters

type — the type of the object
 
ref — the object number

startHeader() 
public void startHeader(String name, boolean mustUnderstand, int index)

Starts a header.

Parameters

name — header name
 
mustUnderstand — mustUnderstand value
 
index — header number

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

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

write() 
public void write(Object o)

Writes an Object type.

Parameters

o

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.

writeRef() 
public void writeRef(int ref)

Writes a ref type.

Parameters

ref

writeString() 
public void writeString(String s)

Writes a String type.

Parameters

s

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.





 

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

Current page: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/javadoc/flex/messaging/io/amf/AmfTrace.html