本文整理了Java中org.springframework.ws.transport.WebServiceConnection.getUri()
方法的一些代码示例,展示了WebServiceConnection.getUri()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebServiceConnection.getUri()
方法的具体详情如下:
包路径:org.springframework.ws.transport.WebServiceConnection
类名称:WebServiceConnection
方法名:getUri
[英]Returns the URI for this connection.
[中]返回此连接的URI。
代码示例来源:origin: spring-projects/spring-integration
@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;
}
代码示例来源:origin: mdeinum/spring-utils
@Override
public URI getUri() throws URISyntaxException {
return delegate.getUri();
}
代码示例来源:origin: spring-projects/spring-ws
private void logUri(WebServiceConnection connection) {
if (logger.isDebugEnabled()) {
try {
logger.debug("Accepting incoming [" + connection + "] at [" + connection.getUri() + "]");
}
catch (URISyntaxException e) {
// ignore
}
}
}
代码示例来源:origin: org.springframework.ws/spring-ws-core
private void logUri(WebServiceConnection connection) {
if (logger.isDebugEnabled()) {
try {
logger.debug("Accepting incoming [" + connection + "] at [" + connection.getUri() + "]");
}
catch (URISyntaxException e) {
// ignore
}
}
}
代码示例来源:origin: org.springframework.ws/org.springframework.ws
private void logUri(WebServiceConnection connection) {
if (logger.isDebugEnabled()) {
try {
logger.debug("Accepting incoming [" + connection + "] at [" + connection.getUri() + "]");
}
catch (URISyntaxException e) {
// ignore
}
}
}
代码示例来源:origin: apache/servicemix-bundles
private void logUri(WebServiceConnection connection) {
if (logger.isDebugEnabled()) {
try {
logger.debug("Accepting incoming [" + connection + "] at [" + connection.getUri() + "]");
}
catch (URISyntaxException e) {
// ignore
}
}
}
代码示例来源:origin: org.apache.camel/camel-spring-ws
private String getUri() throws URISyntaxException {
WebServiceConnection webServiceConnection = getWeServiceConnection();
if (webServiceConnection != null) {
return webServiceConnection.getUri().toString();
}
return null;
}
代码示例来源:origin: org.apache.camel/camel-spring-ws
private String getUriPath() throws URISyntaxException {
WebServiceConnection webServiceConnection = getWeServiceConnection();
if (webServiceConnection != null) {
return webServiceConnection.getUri().getPath();
}
return null;
}
代码示例来源:origin: org.springframework.ws/org.springframework.ws
@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;
}
}
代码示例来源:origin: org.springframework.ws/spring-ws-core
@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;
}
}
代码示例来源:origin: spring-projects/spring-ws
@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;
}
}
代码示例来源:origin: apache/servicemix-bundles
@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;
}
}
代码示例来源:origin: org.springframework.ws/spring-ws-core
if (logger.isDebugEnabled()) {
try {
logger.debug("Opening [" + connection + "] to [" + connection.getUri() + "]");
代码示例来源:origin: spring-projects/spring-ws
/**
* 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;
}
}
代码示例来源:origin: spring-projects/spring-ws
if (logger.isDebugEnabled()) {
try {
logger.debug("Opening [" + connection + "] to [" + connection.getUri() + "]");
代码示例来源:origin: org.springframework.ws/spring-ws-core
/**
* 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;
}
}
代码示例来源:origin: org.springframework.ws/org.springframework.ws
if (logger.isDebugEnabled()) {
try {
logger.debug("Opening [" + connection + "] to [" + connection.getUri() + "]");
代码示例来源:origin: org.springframework.ws/org.springframework.ws
/**
* 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;
}
}
代码示例来源:origin: apache/servicemix-bundles
/**
* 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;
}
}
代码示例来源:origin: apache/servicemix-bundles
if (logger.isDebugEnabled()) {
try {
logger.debug("Opening [" + connection + "] to [" + connection.getUri() + "]");
内容来源于网络,如有侵权,请联系作者删除!