@Override public void close() throws IOException { delegate.close(); }
/** * Close the given {@link WebServiceConnection} and ignore any thrown exception. This is useful for typical * {@code finally} blocks. * * @param connection the web service connection to close (may be {@code null}) */ public static void closeConnection(WebServiceConnection connection) { if (connection != null) { try { connection.close(); } catch (IOException ex) { logger.debug("Could not close WebServiceConnection", ex); } catch (Throwable ex) { logger.debug("Unexpected exception on closing WebServiceConnection", ex); } } }
/** * Close the given {@link WebServiceConnection} and ignore any thrown exception. This is useful for typical * <code>finally</code> blocks. * * @param connection the web service connection to close (may be <code>null</code>) */ public static void closeConnection(WebServiceConnection connection) { if (connection != null) { try { connection.close(); } catch (IOException ex) { logger.debug("Could not close WebServiceConnection", ex); } catch (Throwable ex) { logger.debug("Unexpected exception on closing WebServiceConnection", ex); } } }
/** * Close the given {@link WebServiceConnection} and ignore any thrown exception. This is useful for typical * {@code finally} blocks. * * @param connection the web service connection to close (may be {@code null}) */ public static void closeConnection(WebServiceConnection connection) { if (connection != null) { try { connection.close(); } catch (IOException ex) { logger.debug("Could not close WebServiceConnection", ex); } catch (Throwable ex) { logger.debug("Unexpected exception on closing WebServiceConnection", ex); } } }
/** * Close the given {@link WebServiceConnection} and ignore any thrown exception. This is useful for typical * {@code finally} blocks. * * @param connection the web service connection to close (may be {@code null}) */ public static void closeConnection(WebServiceConnection connection) { if (connection != null) { try { connection.close(); } catch (IOException ex) { logger.debug("Could not close WebServiceConnection", ex); } catch (Throwable ex) { logger.debug("Unexpected exception on closing WebServiceConnection", ex); } } }
private void sendOutOfBand(MessageContext messageContext, EndpointReference replyEpr) throws IOException { if (logger.isDebugEnabled()) { logger.debug("Request [" + messageContext.getRequest() + "] has [" + replyEpr + "] reply address; sending out-of-band reply [" + messageContext.getResponse() + "]"); } boolean supported = false; for (WebServiceMessageSender messageSender : messageSenders) { if (messageSender.supports(replyEpr.getAddress())) { supported = true; WebServiceConnection connection = null; try { connection = messageSender.createConnection(replyEpr.getAddress()); connection.send(messageContext.getResponse()); break; } finally { messageContext.clearResponse(); if (connection != null) { connection.close(); } } } } if (!supported && logger.isWarnEnabled()) { logger.warn("Could not send out-of-band response to [" + replyEpr.getAddress() + "]. " + "Configure WebServiceMessageSenders which support this uri."); } }
private void sendOutOfBand(MessageContext messageContext, EndpointReference replyEpr) throws IOException { if (logger.isDebugEnabled()) { logger.debug("Request [" + messageContext.getRequest() + "] has [" + replyEpr + "] reply address; sending out-of-band reply [" + messageContext.getResponse() + "]"); } boolean supported = false; for (WebServiceMessageSender messageSender : messageSenders) { if (messageSender.supports(replyEpr.getAddress())) { supported = true; WebServiceConnection connection = null; try { connection = messageSender.createConnection(replyEpr.getAddress()); connection.send(messageContext.getResponse()); break; } finally { messageContext.clearResponse(); if (connection != null) { connection.close(); } } } } if (!supported && logger.isWarnEnabled()) { logger.warn("Could not send out-of-band response to [" + replyEpr.getAddress() + "]. " + "Configure WebServiceMessageSenders which support this uri."); } }
private void sendOutOfBand(MessageContext messageContext, EndpointReference replyEpr) throws IOException { if (logger.isDebugEnabled()) { logger.debug("Request [" + messageContext.getRequest() + "] has [" + replyEpr + "] reply address; sending out-of-band reply [" + messageContext.getResponse() + "]"); } boolean supported = false; for (WebServiceMessageSender messageSender : messageSenders) { if (messageSender.supports(replyEpr.getAddress())) { supported = true; WebServiceConnection connection = null; try { connection = messageSender.createConnection(replyEpr.getAddress()); connection.send(messageContext.getResponse()); break; } finally { messageContext.clearResponse(); if (connection != null) { connection.close(); } } } } if (!supported && logger.isWarnEnabled()) { logger.warn("Could not send out-of-band response to [" + replyEpr.getAddress() + "]. " + "Configure WebServiceMessageSenders which support this uri."); } }
private void sendOutOfBand(MessageContext messageContext, EndpointReference replyEpr) throws IOException { if (logger.isDebugEnabled()) { logger.debug("Request [" + messageContext.getRequest() + "] has [" + replyEpr + "] reply address; sending out-of-band reply [" + messageContext.getResponse() + "]"); } boolean supported = false; for (WebServiceMessageSender messageSender : messageSenders) { if (messageSender.supports(replyEpr.getAddress())) { supported = true; WebServiceConnection connection = null; try { connection = messageSender.createConnection(replyEpr.getAddress()); connection.send(messageContext.getResponse()); break; } finally { messageContext.clearResponse(); if (connection != null) { connection.close(); } } } } if (!supported && logger.isWarnEnabled()) { logger.warn("Could not send out-of-band response to [" + replyEpr.getAddress() + "]. " + "Configure WebServiceMessageSenders which support this uri."); } }