Hi,
You can distinguish REST and SOAP by Binding type, for example:
boolean isRestMessage(Message message) {
return !(message.getExchange().getBinding() instanceof SoapBinding);
}
Regards.
Xilai Dai
-----Original Message-----
From: New Groovy [mailto:[email protected]]
Sent: Tuesday, April 22, 2014 9:43 AM
To: [email protected]
Subject: distinguishing REST and SOAP in an interceptor
I would like to use an interceptor for both REST and SOAP calls...
What's the best way to distinguish between the two in the interceptor?
Thanks!