public AbstractBindingFactory(Bus b, Collection<String> ns) { activationNamespaces = ns; bus = b; registerWithBindingManager(); }
/** * Copies extensors from the Binding to BindingInfo. * @param service * @param binding * @param ns */ public BindingInfo createBindingInfo(ServiceInfo service, Binding binding, String ns) { BindingInfo bi = createBindingInfo(service, ns, null); return initializeBindingInfo(service, binding, bi); }
public AbstractBaseBindingFactory(Bus b, Collection<String> ns) { activationNamespaces = ns; bus = b; registerWithBindingManager(); }
message.getInterceptorChain().abort(); MessageObserver observer = message.getExchange().get(MessageObserver.class); if (!message.getExchange().isOneWay() && observer != null) { Endpoint e = message.getExchange().getEndpoint(); Message responseMsg = new MessageImpl(); responseMsg.setExchange(message.getExchange()); responseMsg = e.getBinding().createMessage(responseMsg); message.getExchange().setInMessage(responseMsg); SOAPMessage soapMessage = ((SOAPMessageContext)context).getMessage(); if (!getInvoker(message).isOutbound()) { message.getInterceptorChain().abort(); Endpoint e = message.getExchange().getEndpoint(); if (!message.getExchange().isOneWay()) { Message responseMsg = new MessageImpl(); responseMsg.setExchange(message.getExchange()); responseMsg = e.getBinding().createMessage(responseMsg); message.getExchange().setOutMessage(responseMsg); SOAPMessage soapMessage = ((SOAPMessageContext)context).getMessage(); .getExchange()); responseMsg.setInterceptorChain(chain);
"SOAP/HTTP"); } else if (m == Service.Mode.MESSAGE) { SAAJOutInterceptor saajOut = new SAAJOutInterceptor(); client.getOutInterceptors().add(saajOut); client.getOutInterceptors(). add(new MessageModeOutInterceptor(saajOut, client.getEndpoint() .getBinding().getBindingInfo().getName())); client.getInInterceptors().add(new SAAJInInterceptor()); client.getInInterceptors() .add(new MessageModeInInterceptor(clazz, client.getEndpoint() .getBinding().getBindingInfo().getName()));
private Message createResponseMessage(Exchange exchange) { if (exchange == null) { return null; } Message m = exchange.getOutMessage(); if (m == null && !exchange.isOneWay()) { Endpoint ep = exchange.getEndpoint(); m = new MessageImpl(); m.setExchange(exchange); m = ep.getBinding().createMessage(m); exchange.setOutMessage(m); } return m; }
hasOpName = true; BindingOperationInfo bop = client.getEndpoint().getBinding() .getBindingInfo().getOperation(opName); if (bop == null) { addInvokeOperation(opName, isOneWay);
config = new JaxWsSoapBindingConfiguration((JaxWsServiceFactoryBean)serviceFactory); BindingInfo bindingInfo = bus.getExtension(BindingFactoryManager.class).getBindingFactory(bindingID) .createBindingInfo(serviceFactory.getService(), bindingID, config);
@Before public void setUp() throws Exception { this.tika = new TikaConfig(getClass().getResourceAsStream("tika-config-for-server-tests.xml")); TikaResource.init(tika, new CommonsDigester(DIGESTER_READ_LIMIT, "md5,sha1:32"), new DefaultInputStreamFactory(), new ServerStatus(true)); JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean(); setUpResources(sf); setUpProviders(sf); sf.setAddress(endPoint + "/"); BindingFactoryManager manager = sf.getBus().getExtension( BindingFactoryManager.class ); JAXRSBindingFactory factory = new JAXRSBindingFactory(); factory.setBus(sf.getBus()); manager.registerBindingFactory( JAXRSBindingFactory.JAXRS_BINDING_ID, factory ); server = sf.create(); }
getOutInterceptors().add(new SwAOutInterceptor()); if (isProvider && mode == Mode.MESSAGE) { in.add(new SAAJInInterceptor()); in.add(new MessageModeInInterceptor(clazz, getBinding().getBindingInfo().getName())); SAAJOutInterceptor saajOut = new SAAJOutInterceptor(); out.add(saajOut); out.add(new MessageModeOutInterceptor(saajOut, getBinding().getBindingInfo().getName())); } else if (isProvider) { out.add(new MessageModeOutInterceptor(clazz, getBinding().getBindingInfo().getName()));
m = new org.apache.cxf.message.MessageImpl(); m.setExchange(exchange); m = ep.getBinding().createMessage(m); exchange.setInMessage(m); m = new org.apache.cxf.message.MessageImpl(); m.setExchange(exchange); m = ep.getBinding().createMessage(m); exchange.setOutMessage(m);
client.getEndpoint().getBinding().getBindingInfo(), hasOpName); if (findDispatchOp && !payloadOPMap.isEmpty()) { QName payloadElementName = null; client.getEndpoint().getBinding().getBindingInfo(), hasOpName); BindingOperationInfo dbop = client.getEndpoint().getBinding().getBindingInfo() .getOperation(dispatchedOpName); if (dbop != null) {
public AbstractBaseBindingFactory(Bus b, Collection<String> ns) { activationNamespaces = ns; bus = b; registerWithBindingManager(); }
public AbstractBindingFactory(Bus b, Collection<String> ns) { activationNamespaces = ns; bus = b; registerWithBindingManager(); }
private void handleAbort(Message message, W3CDOMStreamWriter writer) { message.getInterceptorChain().abort(); if (!message.getExchange().isOneWay()) { //server side inbound Endpoint e = message.getExchange().getEndpoint(); Message responseMsg = new MessageImpl(); responseMsg.setExchange(message.getExchange()); responseMsg = e.getBinding().createMessage(responseMsg); message.getExchange().setOutMessage(responseMsg); XMLStreamReader reader = message.getContent(XMLStreamReader.class); if (reader == null && writer != null) { reader = StaxUtils.createXMLStreamReader(writer.getDocument()); } InterceptorChain chain = OutgoingChainInterceptor .getOutInterceptorChain(message.getExchange()); responseMsg.setInterceptorChain(chain); responseMsg.put("LogicalHandlerInterceptor.INREADER", reader); chain.doIntercept(responseMsg); } }
hasOpName = true; BindingOperationInfo bop = client.getEndpoint().getBinding() .getBindingInfo().getOperation(opName); if (bop == null) { addInvokeOperation(opName, false);
public void setActivationNamespaces(Collection<String> activationNamespaces) { this.activationNamespaces = activationNamespaces; registerWithBindingManager(); }
Message responseMsg = new MessageImpl(); responseMsg.setExchange(message.getExchange()); responseMsg = e.getBinding().createMessage(responseMsg);
public AbstractBindingFactory(Bus b) { bus = b; registerWithBindingManager(); }
faultMessage = new MessageImpl(); faultMessage.setExchange(message.getExchange()); faultMessage = exchange.getEndpoint().getBinding().createMessage(faultMessage);