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

Client side filter with @Provider annotation not registered

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 3.0-beta-4
    • Fix Version/s: None
    • Component/s: jaxrs
    • Labels:
    • Environment:

      JBoss AS 7.1.3 with the 3.0-beta-3 module installed (JBoss modules).
      Mac OS X Lion 10.8.3
      Sun JVM 1.7.0_15

    • Steps to Reproduce:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bill.burke Bill Burke
                Reporter:
                el_eduardo Eduardo Solis
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: