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

Client side filter with @Provider annotation not registered

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 3.0-beta-4
    • jaxrs
    • Hide

      Just create a simple rest client and a simple filter that is @Provider annotated.

      Use JBoss AS 7.

      The filter does not get registered

      Show
      Just create a simple rest client and a simple filter that is @Provider annotated. Use JBoss AS 7. The filter does not get registered

    Description

      A simple rest client was created using the JAX-RS 2.0 API. The client works fine but then, a simple filter was added:

      @Provider
      public class ClientHeaderStripper implements ClientResponseFilter {

      @Override
      public void filter(ClientRequestContext arg0, ClientResponseContext arg1)
      throws IOException

      { System.out.println("Client Header strip filter..."); }

      }

      even thought the filter has the @Provider annotation it is not being registered automatically.

      Followed the procedure pseudo documented in
      https://issues.jboss.org/browse/RESTEASY-540

      According to the spec any artifact that can be @Provider annotated should be auto-registered.

      Not sure if I am doing something wrong or this does not work.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: