header.setData(data);
return header;
}
public AMFMessageBody readBody() throws ClassNotFoundException, IOException {
AMFMessageBody body = new AMFMessageBody();
String targetURI = worker.readUTF();
body.setTargetURI(targetURI);
String responseURI = worker.readUTF();
body.setResponseURI(responseURI);
worker.readMessageLength();
worker.reset();
Object data = readObject();
body.setData(data); //in amf3 data is RemotingMessage[1]
return body;
}