|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.util.ObjectTrace
flex.messaging.io.amf.AmfTrace
public class AmfTrace
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 |
|---|
public AmfTrace()
| Method Detail |
|---|
public void startRequest(String message)
message - start message stringpublic void startResponse(String message)
message - start response stringpublic void version(int version)
version - the current version
public void startHeader(String name,
boolean mustUnderstand,
int index)
name - header namemustUnderstand - mustUnderstand valueindex - header numberpublic void endHeader()
public void startCommand(Object cmd,
int iCmd,
Object trxId)
cmd - command objectiCmd - command indextrxId - transaction idpublic void endCommand()
public void startMessage(String targetURI,
String responseURI,
int index)
targetURI - the target URIresponseURI - the response URIindex - the message numberpublic void endMessage()
public void write(Object o)
write in class ObjectTracepublic void write(boolean b)
b - value to writepublic void write(double d)
d - value to writepublic void write(float f)
f - value to writepublic void write(int i)
i - value to writepublic void write(long l)
l - value to writepublic void write(short s)
s - value to writepublic void write(byte b)
b - value to write.public void writeNull()
writeNull in class ObjectTracepublic void writeRef(int ref)
writeRef in class ObjectTracepublic void writeString(String s)
writeString in class ObjectTracepublic void writeStringRef(int ref)
ref - string reference numberpublic void writeTraitsInfoRef(int ref)
ref - trait reference numberpublic void writeUndefined()
public void startAMFArray(int ref)
ref - the array reference numberpublic void startECMAArray(int ref)
ref - the array reference number
public void startByteArray(int ref,
int length)
ref - array reference numberlength - length of the arraypublic void endAMFArray()
public void startExternalizableObject(String type,
int ref)
type - the type of the objectref - the object number
public void startAMFObject(String type,
int ref)
type - the type of the objectref - the reference numberpublic void endAMFObject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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