Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-16790

Should add/remove Resource Methods and Endpoints when adding/removing @HttpMethod annotation

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 4.2.0.Beta2
    • 4.1.1.Final
    • webservices
    • None

    Description

      When adding or removing the @HttpMethod annotation on a custom JAX-RS HTTP Method, the Project Explorer should reflect the changes

      Eg:

      @Target(ElementType.METHOD)
      @Retention(RetentionPolicy.RUNTIME)
      @HttpMethod("FOO")
      public @interface FOO {
      
      }
      

      and

      @Encoded
      @Path(value=CustomerResource.URI_BASE) 
      @Consumes(MediaType.APPLICATION_XML)
      @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
      public class CustomerResource {
      
      	@PersistenceContext
      	private EntityManager entityManager = null;
      
      	public static final String URI_BASE = "/customers";
      	
      	@FOO
      	@Consumes(MediaType.APPLICATION_XML)
      	public Response fooCustomer(Customer customer) {
      		return Response.created(null).build();
      	}
      }
      

      Current workaround: the project needs to be rebuilt to see the changes.

      Attachments

        1. httpMethod01.jpg
          httpMethod01.jpg
          97 kB
        2. httpMethod02.jpg
          httpMethod02.jpg
          99 kB
        3. httpMethod03.jpg
          httpMethod03.jpg
          102 kB

        Activity

          People

            rrabara Radoslav Rábara (Inactive)
            xcoulon@redhat.com Xavier Coulon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: