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

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

本文整理了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

  1. if (invocable instanceof Endpoint) {
  2. Endpoint ep = (Endpoint)invocable;
  3. msg.setTo(ep);
  4. if (!ep.isAsyncInvocation()){
  5. throw new ServiceRuntimeException("Calling invokeAsync on a non-async endpoint - " +
  6. msg.setTo(epr.getTargetEndpoint());

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

  1. public Message invoke(InvocationChain chain, Message msg) {
  2. if (invocable instanceof Endpoint) {
  3. msg.setTo((Endpoint)invocable);
  4. } else if (invocable instanceof EndpointReference) {
  5. msg.setFrom((EndpointReference)invocable);
  6. }
  7. Invoker headInvoker = chain.getHeadInvoker();
  8. Operation operation = chain.getTargetOperation();
  9. msg.setOperation(operation);
  10. Message msgContext = ThreadMessageContext.setMessageContext(msg);
  11. try {
  12. return headInvoker.invoke(msg);
  13. } finally {
  14. ThreadMessageContext.setMessageContext(msgContext);
  15. }
  16. }

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

  1. msg.setTo(target);
  2. } else if (source instanceof RuntimeEndpointReference) {
  3. msg.setTo(((RuntimeEndpointReference)invocable).getTargetEndpoint());

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

  1. msg.setTo(requestEndpoint);
  2. msg.setFrom(responseEndpointReference);

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

  1. msg.setTo(target);
  2. } else {
  3. if (source instanceof RuntimeEndpointReference) {
  4. msg.setTo(((RuntimeEndpointReference)source).getTargetEndpoint());

代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime

  1. msg.setTo(target);
  2. } else {
  3. if (source instanceof RuntimeEndpointReference) {
  4. msg.setTo(((RuntimeEndpointReference)source).getTargetEndpoint());

代码示例来源:origin: org.apache.tuscany.sca/tuscany-binding-ws-runtime-axis2

  1. if( respInvoker != null ) {
  2. callbackEndpoint = createAsyncResponseEndpoint( msg, respInvoker );
  3. msg.setTo(callbackEndpoint);
  4. } else {
  5. callbackEndpoint = msg.getFrom().getCallbackEndpoint();

相关文章