Examples of MessageChannel


Examples of chatbot.client.MessageChannel

  @Override
  public MessageChannel joinChannel(String name) {
      if (!chatEngine.isConnected()) {
          throw new RuntimeException("failed to join channel - client not connected to server");
      }
    MessageChannel messageChannel = chatEngine.connectChannel(name, password);
    return messageChannel;
  }
View Full Code Here

Examples of com.volantis.mps.channels.MessageChannel

            try {
                if (recipient.getChannelName() != null) {

                    if (!recipient.getChannelName().equals(currentChannel)) {
                        currentChannel = recipient.getChannelName();
                        MessageChannel channel =
                                (MessageChannel) CHANNEL_MAP.get(currentChannel);
   
                        if (channel!= null) {
                            try {
                                MessageRecipients sendFailures =
                                        channel.send(message,
                                                     recipients,
                                                     replyTo);
                                if (sendFailures != null) {
                                    RecipientInternals.
                                            addRecipients(failures,
View Full Code Here

Examples of com.volantis.mps.channels.MessageChannel

     * this session.
     */
    public void invalidate() {
        Iterator i = CHANNEL_MAP.values().iterator();
        while (i.hasNext()) {
            MessageChannel channel = (MessageChannel) i.next();
            channel.close();
        }
    }
View Full Code Here

Examples of gov.nist.javax.sip.stack.MessageChannel

                        return transaction;
                    } else {
                        // tx does not exist so create the tx.

                        MessageChannel mc = (MessageChannel) sipRequest
                        .getMessageChannel();
                        transaction = sipStack.createServerTransaction(mc);
                        if (transaction == null)
                            throw new TransactionUnavailableException(
                            "Transaction unavailable -- too many servrer transactions");
View Full Code Here

Examples of gov.nist.javax.sip.stack.MessageChannel

                String branch = via.getBranch();
                if (branch == null || branch.length() == 0) {
                    via.setBranch(sipRequest.getTransactionId());
                }
            }
            MessageChannel messageChannel = null;
            if (this.listeningPoints.containsKey(hop.getTransport()
                    .toUpperCase()))
                messageChannel = sipStack.createRawMessageChannel(
                        this.getListeningPoint(hop.getTransport()).getIPAddress(),
                        this.getListeningPoint(hop.getTransport()).getPort(), hop);
            if (messageChannel != null) {
                messageChannel.sendMessage((SIPMessage) sipRequest,hop);
            } else {
                throw new SipException(
                        "Could not create a message channel for "
                                + hop.toString());
            }
View Full Code Here

Examples of gov.nist.javax.sip.stack.MessageChannel

                    .getListeningPoint(transport);
            if (listeningPoint == null)
                throw new SipException(
                        "whoopsa daisy! no listening point found for transport "
                                + transport);
            MessageChannel messageChannel = sipStack.createRawMessageChannel(
                    this.getListeningPoint(hop.getTransport()).getIPAddress(),
                    listeningPoint.port, hop);
            messageChannel.sendMessage(sipResponse);
        } catch (IOException ex) {
            throw new SipException(ex.getMessage());
        }
    }
View Full Code Here

Examples of gov.nist.javax.sip.stack.MessageChannel

                        return transaction;
                    } else {
                        // tx does not exist so create the tx.

                        MessageChannel mc = (MessageChannel) sipRequest
                        .getMessageChannel();
                        transaction = sipStack.createServerTransaction(mc);
                        if (transaction == null)
                            throw new TransactionUnavailableException(
                            "Transaction unavailable -- too many servrer transactions");
View Full Code Here

Examples of gov.nist.javax.sip.stack.MessageChannel

                String branch = via.getBranch();
                if (branch == null || branch.length() == 0) {
                    via.setBranch(sipRequest.getTransactionId());
                }
            }
            MessageChannel messageChannel = null;
            if (this.listeningPoints.containsKey(hop.getTransport()
                    .toUpperCase()))
                messageChannel = sipStack.createRawMessageChannel(
                        this.getListeningPoint(hop.getTransport()).getIPAddress(),
                        this.getListeningPoint(hop.getTransport()).getPort(), hop);
            if (messageChannel != null) {
                messageChannel.sendMessage((SIPMessage) sipRequest,hop);
            } else {
                throw new SipException(
                        "Could not create a message channel for "
                                + hop.toString());
            }
View Full Code Here

Examples of gov.nist.javax.sip.stack.MessageChannel

                    .getListeningPoint(transport);
            if (listeningPoint == null)
                throw new SipException(
                        "whoopsa daisy! no listening point found for transport "
                                + transport);
            MessageChannel messageChannel = sipStack.createRawMessageChannel(
                    this.getListeningPoint(hop.getTransport()).getIPAddress(),
                    listeningPoint.port, hop);
            messageChannel.sendMessage(sipResponse);
        } catch (IOException ex) {
            throw new SipException(ex.getMessage());
        }
    }
View Full Code Here

Examples of gov.nist.javax.sip.stack.MessageChannel

          return transaction;
        } else {
          // tx does not exist so create the tx.

          MessageChannel mc = (MessageChannel) sipRequest
              .getMessageChannel();
          transaction = sipStack.createServerTransaction(mc);
          if (transaction == null)
            throw new TransactionUnavailableException(
                "Transaction unavailable -- too many servrer transactions");
View Full Code Here
TOP
Copyright © 2018 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.