Thank you! :)
FYI: The Javadoc for
com.sun.jersey.api.core.ResourceConfig.PROPERTY_CONTAINER_REQUEST_FILTERS
(and others) renders wrong. It reads "List<ContainerRequestFilter>"
instead of "List<ContainerRequestFilter>".
Gili
Paul Sandoz wrote:
>
>
> On Oct 7, 2008, at 5:21 PM, Gili wrote:
>
>>
>> See the first answer at
>> http://stackoverflow.com/questions/153420/is-it-feasible-to-create-a-rest-client-with-flex
>>
>> Ideally I'd want it to handle this header seamlessly so @DELETE gets
>> called
>> even if the client actually sent a POST with X-HTTP-Method-
>> Override="DELETE"
>>
>
> Yes, but it is not enabled by default. You can enable it by adding the
> following to the web.xml:
>
> <init-param>
> <param-name>com.sun.jersey.spi.container.ContainerRequestFilters</
> param-name>
> <param-value>com.sun.jersey.api.container.filter.PostReplaceFilter</
> param-value>
> </init-param>
>
> See JavaDoc of:
>
> com.sun.jersey.spi.container.ContainerRequestFilter
> com.sun.jersey.spi.container.ContainerResponseFilter
> ResourceConfig.PROPERTY_CONTAINER_REQUEST_FILTERS
> ResourceConfig.PROPERTY_CONTAINER_RESPONSE_FILTERS
>
> for more details.
>
>
>> On a related note, don't we lose most of the power of REST when
>> doing this?
>> :) I mean, we're tunneling through HTTP again. Proxies lose the
>> ability to
>> cache, etc.
>>
>
> I don't think you loose a lot in terms of caching. Essentially proxies
> observe a contraction of the uniform interface. The RESTful style is
> still there, URIs, hyper-media, request-response, statelessness etc.
> It is one of those annoying pragmatic solutions to get around, what
> appears to be, an arbitrary technical limitation.
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
>
--
View this message in context: http://n2.nabble.com/Does-JAX-RS-support-X-HTTP-Method-Override--tp1303886p1304010.html
Sent from the Jersey mailing list archive at Nabble.com.