You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Eamonn Dwyer (JIRA)" <ji...@apache.org> on 2009/07/02 15:39:47 UTC

[jira] Commented: (CXF-2323) Jax RS clients don't support features

    [ https://issues.apache.org/jira/browse/CXF-2323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12726480#action_12726480 ] 

Eamonn Dwyer commented on CXF-2323:
-----------------------------------

Thanks Sergey
Can you just give me a bit of clarification on the ClientConfiguration object - I see that AbstractClient.getConfiguration() is marked as protected. So are you simply just saying that users shouldn't try to configure interceptors on a WebClient object in their client code using the API? 

For example with the old code (and after I had exposed the InIntercptors from AbstractClient) I was doing the following
String baseAddress = "http://localhost:9000/";
WebClient client = WebClient.create(baseAddress);
client.getInInterceptors().add(new MyInInterceptor());

If the getConfiguration() method in your applied patch was public I could do the same, but you have marked it as protected. Are you just saying that a JaxRS client shouldn't really have any knowledge of how to add interceptors using the api, and really they can just go use the new features capability to do that? In other words a JaxRS developer shouldn't be polluting their code with more JaxWS specific API? If that is the case I'm fine with that, but would just like to know my understanding is correct.  I'm perfectly happy just to live with features and have no real desire to programatically add interceptors.



> Jax RS clients don't support features
> -------------------------------------
>
>                 Key: CXF-2323
>                 URL: https://issues.apache.org/jira/browse/CXF-2323
>             Project: CXF
>          Issue Type: Bug
>          Components: REST
>    Affects Versions: 2.2.2
>            Reporter: Eamonn Dwyer
>            Assignee: Sergey Beryozkin
>             Fix For: 2.2.3, 2.3
>
>         Attachments: CXF-2323.patch
>
>
> It would make life easier if we could have features configureable for Jaxrs clients.
> A proposed patch will follow shortly

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.