You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Joel Pearson <jo...@ipaustralia.gov.au> on 2014/06/25 06:48:02 UTC
Re: CXF "String" transport? [SEC=UNCLASSIFIED]
Willem.Jiang wrote
You may consider to take a look at the log interceptor[1][2], you can intercept the request message do want to you want there.
[1]https://cxf.apache.org/javadoc/latest/org/apache/cxf/interceptor/LoggingInInterceptor.html
[2]https://cxf.apache.org/javadoc/latest/org/apache/cxf/interceptor/LoggingOutInterceptor.html
Can an interceptor cancel a request in its tracks? Or will I need to have some sort of null transport which just eats the message?
________________________________
If you reply to this email, your message will be added to the discussion below:
http://cxf.547215.n5.nabble.com/CXF-String-transport-tp5745506p5745533.html
To unsubscribe from CXF "String" transport?, click here<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5745506&code=am9lbC5wZWFyc29uQGlwYXVzdHJhbGlhLmdvdi5hdXw1NzQ1NTA2fC03NjMyMzIxNjM=>.
NAML<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
Re: CXF "String" transport? [SEC=UNCLASSIFIED]
Posted by Sergey Beryozkin <sb...@gmail.com>.
CXF in interceptors can abort the chain and get the flow continued
starting from the outgoing chain, example:
private Message createOutMessage(Message inMessage) {
Endpoint e = inMessage.getExchange().get(Endpoint.class);
Message mout = e.getBinding().createMessage();
// set some response object if needed
//mout.setContent(List.class, new MessageContentsList(someObject));
mout.setExchange(inMessage.getExchange());
mout.setInterceptorChain(
OutgoingChainInterceptor.getOutInterceptorChain(inMessage.getExchange()));
inMessage.getExchange().setOutMessage(mout);
return mout;
}
createOutMessage(message)
message.getInterceptorChain().doInterceptStartingAt(message,
OutgoingChainInterceptor.class.getName());
org.apache.cxf.frontend.WSDLGetInterceptor has a more involved example
Sergey
On 25/06/14 05:48, Joel Pearson wrote:
> *Willem.Jiang wrote*
>
> You may consider to take a look at the log interceptor[1][2], you
> can intercept the request message do want to you want there.
>
> [1]https://cxf.apache.org/javadoc/latest/org/apache/cxf/interceptor/LoggingInInterceptor.html
> [2]https://cxf.apache.org/javadoc/latest/org/apache/cxf/interceptor/LoggingOutInterceptor.html
>
> Can an interceptor cancel a request in its tracks? Or will I need to
> have some sort of null transport which just eats the message?
>
> ------------------------------------------------------------------------
>
> *If you reply to this email, your message will be added to the
> discussion below:*
>
> http://cxf.547215.n5.nabble.com/CXF-String-transport-tp5745506p5745533.html
>
> To unsubscribe from CXF "String" transport?, click here
> <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5745506&code=am9lbC5wZWFyc29uQGlwYXVzdHJhbGlhLmdvdi5hdXw1NzQ1NTA2fC03NjMyMzIxNjM=>.
> NAML
> <http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>