if (!isProvider) {
in.add(new WrapperClassInInterceptor());
in.add(new HolderInInterceptor());
}
if (getBinding() instanceof SoapBinding) {
in.add(new SOAPHandlerInterceptor(jaxwsBinding));
in.add(new SwAInInterceptor());
getOutInterceptors().add(new SwAOutInterceptor());
if (isProvider && mode == Mode.MESSAGE) {
in.add(new SAAJInInterceptor());
}
}
if (isProvider && mode == Mode.MESSAGE) {
in.add(new MessageModeInInterceptor(clazz, getBinding().getBindingInfo().getName()));
}
// Outbound chain
out.add(new LogicalHandlerOutInterceptor(jaxwsBinding));
if (!isProvider) {
out.add(new WrapperClassOutInterceptor());
out.add(new HolderOutInterceptor());
}
if (getBinding() instanceof SoapBinding) {
out.add(new SOAPHandlerInterceptor(jaxwsBinding));
if (mode == Mode.MESSAGE) {
SAAJOutInterceptor saajOut = new SAAJOutInterceptor();
out.add(saajOut);
out.add(new MessageModeOutInterceptor(saajOut,
getBinding().getBindingInfo().getName()));