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

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

      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.

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

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

              Created:
              Updated:
              Resolved: