Hi,
Seems this is just a same question with "how to route the request
based on custom header value?"[1] a couple of hours ago, I guess you
just miss Sergey's answer there.
[1]http://cxf.547215.n5.nabble.com/how-to-route-the-request-based-on-custom-header-value-td3280554.html
Freeman
On 2010-11-25, at 下午7:53, Kannan Ramasamy wrote:
Hi
I am using Flex as front-end for my REST Service. flash player does
not
support PUT / DELETE request. I am trying to make those request by
custom
header value like below mentioned code.
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onComplete);
var request:URLRequest = new URLRequest("http://url/to/rest/server");
equest.method = URLRequestMethod.POST;
request.data = "dummyData"; // Some data needed, otherwise sent as GET
request!
request.requestHeaders = [new URLRequestHeader("X-HTTP-Method-
Override",
"DELETE")];
oader.load(request);
So in CXF side, i need to handle if request contains custom header
value
based on that request needs to route @Delete. Is it possible?
--
View this message in context:
http://cxf.547215.n5.nabble.com/Can-i-route-the-request-based-on-custom-header-value-tp3279940p3279940.html
Sent from the cxf-user mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org