I could not change the HTTP request from flex, instead I can add my own headers in mx.messaging.messages.IMessage , which RemoteObject sends to the server, and there, expanding flex.messaging.services.remoting.adapters.JavaAdapter (used for access to Spring beans), he can read the header parameters and put them in HTTPRequest.
In the flexible part, I had to stretch mx.rpc.AsyncRequest : declares a new “title” to the property and overwrites the invoke method, which checks to see if a non-zero value exists for installing msg.headers.
and mx.rpc.remoting.mxml.RemoteObject : the constructor creates a new instance of our custom AsyncRequest and overwrites the old AsyncRequest and defines the setHeaders method, which sets the argument to the custom AsyncRequest .
com.asfusion.mate.actions.builders.RemoteObjectInvoker (optional: P): This reads the parameter declared in the Mate map RemoteObjectInvoker and places it in the RemoteObject header.
Hope this makes sense (with my apache english xDDD)
Bye Agur!
source share