public void complete(Exchange exchange) { super.complete(exchange); // here we just reset the selectConduit for next around connection selectedConduit = null; }
private boolean matchAddresses(String conduitAddress, String actualAddress, ContextualBooleanGetter cbg) { if (conduitAddress.length() == actualAddress.length()) { //let's be optimistic and try full comparison first, regardless of CONDUIT_COMPARE_FULL_URL value, //which can be expensive to fetch; as a matter of fact, anyway, if the addresses fully match, //their hosts also match if (conduitAddress.equalsIgnoreCase(actualAddress)) { return true; } return cbg.isFullComparison() ? false : matchAddressSubstrings(conduitAddress, actualAddress); } return cbg.isFullComparison() ? false : matchAddressSubstrings(conduitAddress, actualAddress); }
synchronized (endpoint) { if (!conduits.isEmpty()) { c = findCompatibleConduit(message); if (c != null) { return c; || add.equals(ei.getAddress())) { c = conduitInitiator.getConduit(ei, exchange.getBus()); replaceEndpointAddressPropertyIfNeeded(message, add, c); } else { EndpointReferenceType epr = new EndpointReferenceType(); c.setMessageObserver(observer); } else { getLogger().warning("MessageObserver not found");
Conduit c = findCompatibleConduit(message); if (c == null) { Exchange exchange = message.getExchange(); conduitInitiatorMgr.getConduitInitiator(transportID); if (conduitInitiator != null) { c = createConduit(message, exchange, conduitInitiator); } else { getLogger().warning("ConduitInitiator not found: " + ei.getAddress()); getLogger().warning("ConduitInitiatorManager not found"); replaceEndpointAddressPropertyIfNeeded(message, c.getTarget().getAddress().getValue(), c);
/** * Called on completion of the MEP for which the Conduit was required. * * @param exchange represents the completed MEP */ public void complete(Exchange exchange) { // Clients expecting explicit InputStream responses // will need to keep low level conduits operating on InputStreams open // and will be responsible for closing the streams if (PropertyUtils.isTrue(exchange.get(KEEP_CONDUIT_ALIVE))) { return; } try { if (exchange.getInMessage() != null) { Conduit c = exchange.getOutMessage().get(Conduit.class); if (c == null) { getSelectedConduit(exchange.getInMessage()).close(exchange.getInMessage()); } else { c.close(exchange.getInMessage()); } } } catch (IOException e) { //IGNORE } } /**
if (matchAddresses(conduitAddress, actualAddress, cbg)) { return c2;
synchronized (endpoint) { if (!conduits.isEmpty()) { c = findCompatibleConduit(message); if (c != null) { return c; || add.equals(ei.getAddress())) { c = conduitInitiator.getConduit(ei, exchange.getBus()); replaceEndpointAddressPropertyIfNeeded(message, add, c); } else { EndpointReferenceType epr = new EndpointReferenceType(); c.setMessageObserver(observer); } else { getLogger().warning("MessageObserver not found");
Conduit c = findCompatibleConduit(message); if (c == null) { Exchange exchange = message.getExchange(); conduitInitiatorMgr.getConduitInitiator(transportID); if (conduitInitiator != null) { c = createConduit(message, exchange, conduitInitiator); } else { getLogger().warning("ConduitInitiator not found: " + ei.getAddress()); getLogger().warning("ConduitInitiatorManager not found"); replaceEndpointAddressPropertyIfNeeded(message, c.getTarget().getAddress().getValue(), c);
/** * Called on completion of the MEP for which the Conduit was required. * * @param exchange represents the completed MEP */ public void complete(Exchange exchange) { // Clients expecting explicit InputStream responses // will need to keep low level conduits operating on InputStreams open // and will be responsible for closing the streams if (PropertyUtils.isTrue(exchange.get(KEEP_CONDUIT_ALIVE))) { return; } try { if (exchange.getInMessage() != null) { Conduit c = exchange.getOutMessage().get(Conduit.class); if (c == null) { getSelectedConduit(exchange.getInMessage()).close(exchange.getInMessage()); } else { c.close(exchange.getInMessage()); } } } catch (IOException e) { //IGNORE } } /**
if (matchAddresses(conduitAddress, actualAddress, cbg)) { return c2;
Conduit c = findCompatibleConduit(message); if (c == null) { Exchange exchange = message.getExchange(); || add.equals(ei.getAddress())) { c = conduitInitiator.getConduit(ei); replaceEndpointAddressPropertyIfNeeded(message, add, c); } else { EndpointReferenceType epr = new EndpointReferenceType(); c.setMessageObserver(observer); } else { getLogger().warning("MessageObserver not found"); getLogger().warning("ConduitInitiator not found: " + ei.getAddress()); getLogger().warning("ConduitInitiatorManager not found"); replaceEndpointAddressPropertyIfNeeded(message, c.getTarget().getAddress().getValue(), c);
public void complete(Exchange exchange) { super.complete(exchange); // here we just reset the selectConduit for next around connection selectedConduit = null; }
/** * Called on completion of the MEP for which the Conduit was required. * * @param exchange represents the completed MEP */ public void complete(Exchange exchange) { // Clients expecting explicit InputStream responses // will need to keep low level conduits operating on InputStreams open // and will be responsible for closing the streams if (MessageUtils.isTrue(exchange.get(KEEP_CONDUIT_ALIVE))) { return; } try { if (exchange.getInMessage() != null) { Conduit c = exchange.getOutMessage().get(Conduit.class); if (c == null) { getSelectedConduit(exchange.getInMessage()).close(exchange.getInMessage()); } else { c.close(exchange.getInMessage()); } } } catch (IOException e) { //IGNORE } } /**
private boolean matchAddresses(String conduitAddress, String actualAddress, ContextualBooleanGetter cbg) { if (conduitAddress.length() == actualAddress.length()) { //let's be optimistic and try full comparison first, regardless of CONDUIT_COMPARE_FULL_URL value, //which can be expensive to fetch; as a matter of fact, anyway, if the addresses fully match, //their hosts also match if (conduitAddress.equalsIgnoreCase(actualAddress)) { return true; } return cbg.isFullComparison() ? false : matchAddressSubstrings(conduitAddress, actualAddress); } return cbg.isFullComparison() ? false : matchAddressSubstrings(conduitAddress, actualAddress); }
Conduit c = findCompatibleConduit(message); if (c == null) { Exchange exchange = message.getExchange(); || add.equals(ei.getAddress())) { c = conduitInitiator.getConduit(ei); replaceEndpointAddressPropertyIfNeeded(message, add, c); } else { EndpointReferenceType epr = new EndpointReferenceType(); c.setMessageObserver(observer); } else { getLogger().warning("MessageObserver not found"); getLogger().warning("ConduitInitiator not found: " + ei.getAddress()); getLogger().warning("ConduitInitiatorManager not found"); replaceEndpointAddressPropertyIfNeeded(message, c.getTarget().getAddress().getValue(), c);
protected void doComplete(Exchange exchange) { super.complete(exchange); }
/** * Called on completion of the MEP for which the Conduit was required. * * @param exchange represents the completed MEP */ public void complete(Exchange exchange) { // Clients expecting explicit InputStream responses // will need to keep low level conduits operating on InputStreams open // and will be responsible for closing the streams if (MessageUtils.isTrue(exchange.get(KEEP_CONDUIT_ALIVE))) { return; } try { if (exchange.getInMessage() != null) { Conduit c = exchange.getOutMessage().get(Conduit.class); if (c == null) { getSelectedConduit(exchange.getInMessage()).close(exchange.getInMessage()); } else { c.close(exchange.getInMessage()); } } } catch (IOException e) { //IGNORE } } /**
protected void doComplete(Exchange exchange) { super.complete(exchange); }
InvocationContext invocation = getInvocationContext(key); if (invocation == null) { super.complete(exchange); return;
InvocationContext invocation = getInvocationContext(key); if (invocation == null) { super.complete(exchange); return;