@Override public boolean handleRequest(MessageContext messageContext) throws WebServiceClientException { TransportContext tc = TransportContextHolder.getTransportContext(); if (tc != null) { try { this.lastUri = tc.getConnection().getUri(); } catch (URISyntaxException e) { throw new IllegalStateException(e); } } else { throw new IllegalStateException("expected WebServiceConnection in the TransportContext"); } return true; }
@Override public URI getUri() throws URISyntaxException { return delegate.getUri(); }
private void logUri(WebServiceConnection connection) { if (logger.isDebugEnabled()) { try { logger.debug("Accepting incoming [" + connection + "] at [" + connection.getUri() + "]"); } catch (URISyntaxException e) { // ignore } } }
private void logUri(WebServiceConnection connection) { if (logger.isDebugEnabled()) { try { logger.debug("Accepting incoming [" + connection + "] at [" + connection.getUri() + "]"); } catch (URISyntaxException e) { // ignore } } }
private void logUri(WebServiceConnection connection) { if (logger.isDebugEnabled()) { try { logger.debug("Accepting incoming [" + connection + "] at [" + connection.getUri() + "]"); } catch (URISyntaxException e) { // ignore } } }
private void logUri(WebServiceConnection connection) { if (logger.isDebugEnabled()) { try { logger.debug("Accepting incoming [" + connection + "] at [" + connection.getUri() + "]"); } catch (URISyntaxException e) { // ignore } } }
private String getUri() throws URISyntaxException { WebServiceConnection webServiceConnection = getWeServiceConnection(); if (webServiceConnection != null) { return webServiceConnection.getUri().toString(); } return null; }
private String getUriPath() throws URISyntaxException { WebServiceConnection webServiceConnection = getWeServiceConnection(); if (webServiceConnection != null) { return webServiceConnection.getUri().getPath(); } return null; }
@Override protected String getLookupKeyForMessage(MessageContext messageContext) throws Exception { TransportContext transportContext = TransportContextHolder.getTransportContext(); if (transportContext != null) { WebServiceConnection connection = transportContext.getConnection(); if (connection != null) { return connection.getUri().toString(); } } return null; } }
@Override protected String getLookupKeyForMessage(MessageContext messageContext) throws Exception { TransportContext transportContext = TransportContextHolder.getTransportContext(); if (transportContext != null) { WebServiceConnection connection = transportContext.getConnection(); if (connection != null) { URI connectionUri = connection.getUri(); if (usePath) { return connectionUri.getPath(); } else { return connectionUri.toString(); } } } return null; } }
@Override protected String getLookupKeyForMessage(MessageContext messageContext) throws Exception { TransportContext transportContext = TransportContextHolder.getTransportContext(); if (transportContext != null) { WebServiceConnection connection = transportContext.getConnection(); if (connection != null) { URI connectionUri = connection.getUri(); if (usePath) { return connectionUri.getPath(); } else { return connectionUri.toString(); } } } return null; } }
@Override protected String getLookupKeyForMessage(MessageContext messageContext) throws Exception { TransportContext transportContext = TransportContextHolder.getTransportContext(); if (transportContext != null) { WebServiceConnection connection = transportContext.getConnection(); if (connection != null) { URI connectionUri = connection.getUri(); if (usePath) { return connectionUri.getPath(); } else { return connectionUri.toString(); } } } return null; } }
if (logger.isDebugEnabled()) { try { logger.debug("Opening [" + connection + "] to [" + connection.getUri() + "]");
/** * Returns the {@code Destination} for outgoing messages. * * <p>Defaults to the {@link org.springframework.ws.transport.WebServiceConnection#getUri() connection URI} if no * destination was set. */ protected URI getTo() { if (to == null) { TransportContext transportContext = TransportContextHolder.getTransportContext(); if (transportContext != null && transportContext.getConnection() != null) { try { return transportContext.getConnection().getUri(); } catch (URISyntaxException ex) { // ignore } } throw new IllegalStateException("Could not obtain connection URI from Transport Context"); } else { return to; } }
if (logger.isDebugEnabled()) { try { logger.debug("Opening [" + connection + "] to [" + connection.getUri() + "]");
/** * Returns the {@code Destination} for outgoing messages. * * <p>Defaults to the {@link org.springframework.ws.transport.WebServiceConnection#getUri() connection URI} if no * destination was set. */ protected URI getTo() { if (to == null) { TransportContext transportContext = TransportContextHolder.getTransportContext(); if (transportContext != null && transportContext.getConnection() != null) { try { return transportContext.getConnection().getUri(); } catch (URISyntaxException ex) { // ignore } } throw new IllegalStateException("Could not obtain connection URI from Transport Context"); } else { return to; } }
if (logger.isDebugEnabled()) { try { logger.debug("Opening [" + connection + "] to [" + connection.getUri() + "]");
/** * Returns the <code>Destination</code> for outgoing messages. * <p/> * Defaults to the {@link org.springframework.ws.transport.WebServiceConnection#getUri() connection URI} if no * destination was set. */ protected URI getTo() { if (to == null) { TransportContext transportContext = TransportContextHolder.getTransportContext(); if (transportContext != null && transportContext.getConnection() != null) { try { return transportContext.getConnection().getUri(); } catch (URISyntaxException ex) { // ignore } } throw new IllegalStateException("Could not obtain connection URI from Transport Context"); } else { return to; } }
/** * Returns the {@code Destination} for outgoing messages. * * <p>Defaults to the {@link org.springframework.ws.transport.WebServiceConnection#getUri() connection URI} if no * destination was set. */ protected URI getTo() { if (to == null) { TransportContext transportContext = TransportContextHolder.getTransportContext(); if (transportContext != null && transportContext.getConnection() != null) { try { return transportContext.getConnection().getUri(); } catch (URISyntaxException ex) { // ignore } } throw new IllegalStateException("Could not obtain connection URI from Transport Context"); } else { return to; } }
if (logger.isDebugEnabled()) { try { logger.debug("Opening [" + connection + "] to [" + connection.getUri() + "]");