Hi Vishal
Will get it fixed and I think we need to support system _method queries too by
default, similarly to _type ones
In meantime you may get things working if you write a CXF input interceptor at RECEIVE phase and register it with a jaxrs endpoint
as an input interceptor :
public class CustomInterceptor extends AbstractPhaseInterceptor<Message> {
public CustomInterceptor() {
super(PHASE_RECEIVE);
}
public void hadleMessage(Message m) {
m.put(m.HTTP_REQUEST_METHOD, "PUT");
}
}
Unfortunately I haven't got yet to updating the phase of the JAXRSInInterceptor which sits on the same very early stage but I hope
the custom one will be chosen first by the phase chain, give it a try please.
Thanks, Sergey
----- Original Message -----
From: "Vishal.a" <[email protected]>
To: <[email protected]>
Sent: Friday, February 06, 2009 2:11 AM
Subject: Re: Flash problems with PUT/DELETE JAX-RS
All,
So i wrote a request handlers that would basically replace the http method
type depending on the query string.I looked into the MappingHandlers class
which essentially does the same thing but with content type. But stepping
into the code in JAXRSInInterceptor i found out that the http method is
already decided even before the request handler is called.
Can anyone suggest any other way of doing this.
Thanks,
Vishal
Vishal.a wrote:
All,
Flash does not support PUT/DELETE operations.It only supports GET/POST.
I was reading up and some of the frameworks allow HTTPService’s method to
POST and append _method=PUT or _method=DELETE to the query string in the
service’s URL and the framework converts it to respective operation on
other side.
Is there any way i can achieve the same with JAX-RS
Thanks,
Vishal
--
View this message in context:
http://www.nabble.com/Flash-problems-with-PUT-DELETE-JAX-RS-tp21864506p21865327.html
Sent from the cxf-user mailing list archive at Nabble.com.