Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-34

Locator method and resource method with same URI does not dispatch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • Beta4
    • Beta3
    • jaxrs
    • None

    Description

      public static class Receiver
      {
      @Path("/head")
      @GET
      public String get()

      { return this.getClass().getName(); }

      }

      public static class QueueReceiver extends Receiver
      {

      }

      @Path("/directory")
      public static class Directory
      {
      @Path("/receivers/

      {id}")
      public QueueReceiver getReceiver(@PathParam("id")String id)
      { return new QueueReceiver(); }

      @DELETE
      @Path("/receivers/{id}

      ")
      public String closeReceiver(@PathParam("id")String id) throws Exception

      { return Directory.class.getName(); }

      }

      if the invocation is "DELETE /receiver/1" it will not dispatch to closeReceiver.

      Attachments

        Activity

          People

            patriot1burke@gmail.com Bill Burke (Inactive)
            patriot1burke@gmail.com Bill Burke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: