Examples of receive()


Examples of org.apache.sandesha2.msgreceivers.RMMessageReceiver.receive()

        AxisCallback callback = new AxisCallback() {

          public void onMessage(MessageContext msg) {
            try {
              RMMessageReceiver rm = new RMMessageReceiver();
              rm.receive(msg);
            } catch(Exception e) {
              if(log.isErrorEnabled()) log.error("Exception on callback", e);
            }
          }

Examples of org.apache.servicemix.client.DefaultServiceMixClient.receive()

            me.getInMessage().setContent(new StringSource(
                    "<test xmlns=\"http://test\"><echo/><world/><earth/></test>"));
            client.send(me);
        }
        for (int i = 0; i < nbMsgs; i++) {
            client.receive();
        }
        ((Receiver) getBean("trace1")).getMessageList().assertMessagesReceived(1 * nbMsgs);
        ((Receiver) getBean("trace2")).getMessageList().assertMessagesReceived(1 * nbMsgs);
        ((Receiver) getBean("trace3")).getMessageList().assertMessagesReceived(1 * nbMsgs);
        ((Receiver) getBean("trace4")).getMessageList().assertMessagesReceived(2 * nbMsgs);
 

Examples of org.apache.servicemix.client.ServiceMixClient.receive()

            me.getInMessage().setContent(new StringSource(
                    "<test xmlns=\"http://test\"><echo/><world/><earth/></test>"));
            client.send(me);
        }
        for (int i = 0; i < nbMsgs; i++) {
            client.receive();
        }
        ((Receiver) getBean("trace1")).getMessageList().assertMessagesReceived(1 * nbMsgs);
        ((Receiver) getBean("trace2")).getMessageList().assertMessagesReceived(1 * nbMsgs);
        ((Receiver) getBean("trace3")).getMessageList().assertMessagesReceived(1 * nbMsgs);
        ((Receiver) getBean("trace4")).getMessageList().assertMessagesReceived(2 * nbMsgs);
 

Examples of org.apache.soap.transport.SOAPTransport.receive()

      if (this.getHeaderManager() != null){
        this.getHeaderManager().setSOAPHeader(spconn);
      }

            SOAPTransport st = msg.getSOAPTransport();
            BufferedReader br = st.receive();
            RESULT.setDataType(SampleResult.TEXT);
            if (this.getPropertyAsBoolean(READ_RESPONSE))
            {
                StringBuffer buf = new StringBuffer();
                String line;

Examples of org.apache.soap.transport.http.SOAPHTTPConnection.receive()

            if (this.getHeaderManager() != null) {
                this.getHeaderManager().setSOAPHeader(spconn);
            }

            BufferedReader br = null;
            if (spconn.receive() != null) {
                br = spconn.receive();
                SOAPContext sc = spconn.getResponseSOAPContext();
                // Set details from the actual response
                // Needs to be done before response can be stored
                final String contentType = sc.getContentType();

Examples of org.apache.sshd.common.scp.ScpHelper.receive()

            throw (IOException) new InterruptedIOException().initCause(e);
        }

        ScpHelper helper = new ScpHelper(channel.getInvertedOut(), channel.getInvertedIn(), fs);

        helper.receive(target,
                       options.contains(Option.Recursive),
                       options.contains(Option.TargetIsDirectory),
                       options.contains(Option.PreserveAttributes));

        channel.close(false);

Examples of org.apache.ws.security.common.CustomHandler.receive()

        messageContext = new java.util.TreeMap<String, Object>();
        messageContext.put(WSHandlerConstants.PW_CALLBACK_REF, this);
        reqData.setMsgContext(messageContext);
        reqData.setUsername("");
       
        handler.receive(WSConstants.SIGN, reqData);
       
        secEngine.processSecurityHeader(doc, null, this, null, crypto);
    }
   
   

Examples of org.apache.wsif.util.jms.WSIFJMSDestination.receive()

      // send the jms message   
      String correlId = sendJmsMessage(input);

      WSIFJMSDestination jmsDest = fieldJmsPort.getJmsDestination();
      javax.jms.Message response = jmsDest.receive(correlId, syncTimeout);
      operationSucceeded = receiveJmsMessage(response, output, fault);

    } catch (Exception ex) {
      Trc.exception(ex);

Examples of org.apache.wss4j.dom.common.CustomHandler.receive()

       
        CustomHandler handler = new CustomHandler();
        List<Integer> receivedActions = new ArrayList<Integer>();
        receivedActions.add(WSConstants.SIGN);
        receivedActions.add(WSConstants.TS);
        handler.receive(receivedActions, reqData);
       
        WSSecurityEngine securityEngine = new WSSecurityEngine();
        return securityEngine.processSecurityHeader(doc, "", reqData);
    }
   

Examples of org.codehaus.xfire.transport.Channel.receive()

        JBIContext.setMessageExchange(exchange);
        if (isInAndOut(exchange)) {
            // TODO ?
        }
        try {
            c.receive(ctx, msg);
        } finally {
            JBIContext.setMessageExchange(null);
            EndpointDeliveryChannel.setEndpoint(null);
        }
        c.close();
TOP
Copyright © 2015 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.