本文整理了Java中org.apache.tuscany.sca.invocation.Message.setTo()
方法的一些代码示例,展示了Message.setTo()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.setTo()
方法的具体详情如下:
包路径:org.apache.tuscany.sca.invocation.Message
类名称:Message
方法名:setTo
[英]Set the end point reference of target service
[中]设置目标服务的端点引用
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
if (invocable instanceof Endpoint) {
Endpoint ep = (Endpoint)invocable;
msg.setTo(ep);
if (!ep.isAsyncInvocation()){
throw new ServiceRuntimeException("Calling invokeAsync on a non-async endpoint - " +
msg.setTo(epr.getTargetEndpoint());
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
public Message invoke(InvocationChain chain, Message msg) {
if (invocable instanceof Endpoint) {
msg.setTo((Endpoint)invocable);
} else if (invocable instanceof EndpointReference) {
msg.setFrom((EndpointReference)invocable);
}
Invoker headInvoker = chain.getHeadInvoker();
Operation operation = chain.getTargetOperation();
msg.setOperation(operation);
Message msgContext = ThreadMessageContext.setMessageContext(msg);
try {
return headInvoker.invoke(msg);
} finally {
ThreadMessageContext.setMessageContext(msgContext);
}
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
msg.setTo(target);
} else if (source instanceof RuntimeEndpointReference) {
msg.setTo(((RuntimeEndpointReference)invocable).getTargetEndpoint());
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
msg.setTo(requestEndpoint);
msg.setFrom(responseEndpointReference);
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
msg.setTo(target);
} else {
if (source instanceof RuntimeEndpointReference) {
msg.setTo(((RuntimeEndpointReference)source).getTargetEndpoint());
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
msg.setTo(target);
} else {
if (source instanceof RuntimeEndpointReference) {
msg.setTo(((RuntimeEndpointReference)source).getTargetEndpoint());
代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-runtime-axis2
if( respInvoker != null ) {
callbackEndpoint = createAsyncResponseEndpoint( msg, respInvoker );
msg.setTo(callbackEndpoint);
} else {
callbackEndpoint = msg.getFrom().getCallbackEndpoint();
内容来源于网络,如有侵权,请联系作者删除!