4 Replies Latest reply on Nov 18, 2009 2:11 PM by jsbournival

    JAX-RS: HTTP Method URL matching on HEAD request

    jsbournival

      Hi, we have a problem with CXF rest impl.  We are running CXF inside of servicemix4/OSGi.

       

      Considering the resource class:

      -


      @Path("/myresource/...")

      public class MyResource {

       

      @GET

      @Produces("application/atom+xml")

      public Response getResource(...) { ... }

       

      @HEAD

      public Response headResource(...) { ... }

      }

      -


       

      If I call my resource like this:

      HEAD /myresource/... HTTP/1.1

       

      I get the wonderful log entry that says:  Resource class MyResource does not support HEAD http method, method getResource supporting GET http method will be invoked

       

      Is there a known problem with HEAD?  Is there something missing in our resource class?

       

      Thanks for helping out!

       

      JS.