/** * check if a Message is a Rest Message * * @param message * @return */ private boolean isSOAPMessage(Message message) { Binding binding = message.getExchange().getBinding(); return binding != null && "SoapBinding".equals(binding.getClass().getSimpleName()); }
/** * check if a Message is a Rest Message * * @param message * @return */ static boolean isRestMessage(Message message) { //String resName = (String) message.getExchange().get("org.apache.cxf.resource.operation.name"); return !(message.getExchange().getBinding() instanceof SoapBinding); } }
/** * check if a Message is a Rest Message * * @param message * @return */ static boolean isRestMessage(Message message) { //String resName = (String) message.getExchange().get("org.apache.cxf.resource.operation.name"); return !(message.getExchange().getBinding() instanceof SoapBinding); } }
/** * check if a Message is a Rest Message * * @param message * @return */ private boolean isSOAPMessage(Message message) { Binding binding = message.getExchange().getBinding(); return binding != null && "SoapBinding".equals(binding.getClass().getSimpleName()); }
private static boolean isRestMessage(Message message) { return !(message.getExchange().getBinding() instanceof SoapBinding); } }
private static boolean isRestMessage(Message message) { return !(message.getExchange().getBinding() instanceof SoapBinding); } }
private static boolean isRestMessage(Message message) { return !(message.getExchange().getBinding() instanceof SoapBinding); }
private static boolean isRestMessage(Message message) { return !(message.getExchange().getBinding() instanceof SoapBinding); }
private boolean isSOAP12(Message message) { if (message.getExchange().getBinding() instanceof SoapBinding) { SoapBinding binding = (SoapBinding)message.getExchange().getBinding(); if (binding.getSoapVersion() == Soap12.getInstance()) { return true; } } return false; } }
private boolean isSOAP12(Message message) { if (message.getExchange().getBinding() instanceof SoapBinding) { SoapBinding binding = (SoapBinding) message.getExchange().getBinding(); if (binding.getSoapVersion() == Soap12.getInstance()) { return true; } } return false; }
private boolean isSOAP12(Message message) { if (message.getExchange().getBinding() instanceof SoapBinding) { SoapBinding binding = (SoapBinding)message.getExchange().getBinding(); if (binding.getSoapVersion() == Soap12.getInstance()) { return true; } } return false; } }
private boolean isSOAP12(Message message) { if (message.getExchange().getBinding() instanceof SoapBinding) { SoapBinding binding = (SoapBinding) message.getExchange().getBinding(); if (binding.getSoapVersion() == Soap12.getInstance()) { return true; } } return false; }
public static InterceptorChain getOutInterceptorChain(Exchange ex) { Bus bus = ex.getBus(); Binding binding = ex.getBinding(); PhaseManager pm = bus.getExtension(PhaseManager.class); PhaseInterceptorChain chain = new PhaseInterceptorChain(pm.getOutPhases());
public static InterceptorChain getOutInterceptorChain(Exchange ex) { Bus bus = ex.getBus(); Binding binding = ex.getBinding(); PhaseManager pm = bus.getExtension(PhaseManager.class); PhaseInterceptorChain chain = new PhaseInterceptorChain(pm.getOutPhases());
private static PhaseInterceptorChain getChain(Exchange ex, PhaseChainCache chainCache) { Bus bus = ex.getBus(); Binding binding = ex.getBinding();
private static PhaseInterceptorChain getChain(Exchange ex, PhaseChainCache chainCache) { Bus bus = ex.getBus(); Binding binding = ex.getBinding();
public static void fillCallContext(CallContext callContext, SoapMessage message) { if (callContext.getOperationName() == null) { callContext.setOperationName((QName) message.get(Message.WSDL_OPERATION)); } callContext.setPortTypeName((QName) message.get(Message.WSDL_INTERFACE)); callContext.setServiceName((QName) message.get(Message.WSDL_SERVICE)); final BindingInfo bi = message.getExchange().getBinding().getBindingInfo(); callContext.setBindingId(bi == null ? "http://schemas.xmlsoap.org/wsdl/soap/" : bi.getBindingId()); URL wsdlLocation = resolveCallbackWsdlLocation(callContext.getServiceName(), message); if (wsdlLocation != null) { callContext.setWsdlLocation(wsdlLocation); } String flowId = FlowIdHelper.getFlowId(message); if (flowId != null && !flowId.isEmpty()) { callContext.setFlowId(flowId); } }
if (!isRestMessage) { messageInfo.setMessageId(getMessageId(message)); ServiceInfo serviceInfo = message.getExchange().getBinding().getBindingInfo().getService(); if (null != serviceInfo) { String portTypeName = serviceInfo.getInterface().getName().toString(); messageInfo.setOperationName(getOperationName(message)); SoapBinding soapBinding = (SoapBinding) message.getExchange().getBinding(); if (soapBinding.getBindingInfo() instanceof SoapBindingInfo) { SoapBindingInfo soapBindingInfo = (SoapBindingInfo) soapBinding.getBindingInfo();
if (!isRestMessage) { messageInfo.setMessageId(getMessageId(message)); ServiceInfo serviceInfo = message.getExchange().getBinding().getBindingInfo().getService(); if (null != serviceInfo) { String portTypeName = serviceInfo.getInterface().getName().toString(); messageInfo.setOperationName(getOperationName(message)); SoapBinding soapBinding = (SoapBinding) message.getExchange().getBinding(); if (soapBinding.getBindingInfo() instanceof SoapBindingInfo) { SoapBindingInfo soapBindingInfo = (SoapBindingInfo) soapBinding.getBindingInfo();