org.apache.tuscany.sca.invocation.Message.setTo()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(252)

本文整理了Java中org.apache.tuscany.sca.invocation.Message.setTo()方法的一些代码示例,展示了Message.setTo()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.setTo()方法的具体详情如下:
包路径:org.apache.tuscany.sca.invocation.Message
类名称:Message
方法名:setTo

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();

相关文章