Configure client interceptor in client proxy

Help
2011-04-07
2013-06-06
  • Cindy Barker
    Cindy Barker
    2011-04-07

    We are using RestEasy client proxy with Spring; we have custom client interceptor that we want to configure into the client proxy. Our Spring configuration file is like below, any information on how to configure the proxy to use our client interceptor?

        <!- This class initializes Built In Providers ->
        <bean id="resteasyClientInitializer"
              class="org.jboss.resteasy.plugins.spring.ResteasyClientInitializer"/>

        <bean id="UserClient" class="org.jboss.resteasy.client.ProxyFactory" factory-method="create">
            <constructor-arg value="com.example.UserClient"/>
            <constructor-arg value="http://localhost:8080/eds"/>
        </bean>