/** * 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 } } /**
/** * 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 } } /**
/** * 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 } } /**
/** * 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 } } /**