[
https://issues.apache.org/jira/browse/CAMEL-4128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052512#comment-13052512
]
Sergey Beryozkin commented on CAMEL-4128:
-----------------------------------------
webClient.getResponse().getStatus() can always be used to access the current
response status.
For example:
WebClient webClient = WebClient.create(address);
Book book = webClient.get(Book.class);
webClient.getResponse().getStatus();
or
Response r = webClient.get(Response.class);
r.getStatus();
or, more specifically for cxf rs,
Book book = webClient.invoke("GET", null, Book.class);
webClient.getResponse().getStatus();
Same works for proxies:
BookStore proxy = JAXRSClientFactory.create(address, BookStore.class);
Book book = proxy.getBook();
WebClient.client(proxy).getResponse().getStatus()
> Camel CxfRsProducer should put the response code back to the message header
> ---------------------------------------------------------------------------
>
> Key: CAMEL-4128
> URL: https://issues.apache.org/jira/browse/CAMEL-4128
> Project: Camel
> Issue Type: Improvement
> Components: camel-cxf
> Reporter: Willem Jiang
> Assignee: Willem Jiang
> Fix For: Future
>
>
> Current Camel CxfRsProducer doesn't put the response code back to the message
> header.
> But the user want to access the response code.
> Here[1] is the discussion about it.
> [1]http://camel.465427.n5.nabble.com/Http-Status-code-from-CXFRS-not-working-tp4509452p4509452.html
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira