Examples of MessageProcessor


Examples of com.dilanperera.rapidws.process.MessageProcessor

    // get input and output streams
    InputStream inputStream = new BufferedInputStream(request.getInputStream());
    OutputStream outputStream = new BufferedOutputStream(response.getOutputStream());

    // get the message processor
    MessageProcessor messageProcessor = MessageProcessorFactory.getMessageProcessor(
        this.getMessageProcessorName());

        // process the message
    messageProcessor.processMessage(messageContext, inputStream, outputStream);

    String contentType = TextContent.EMPTY;
    String outputText = TextContent.EMPTY;

    if (messageContext.isError())
View Full Code Here

Examples of es.emergya.communications.MessageProcessor

   * Procesa los mensajes
   */
  @Override
  public void execute(JobExecutionContext arg0) throws JobExecutionException {
    try {
      MessageProcessor mp = new MessageProcessor();
      for (Inbox ba : BandejaEntradaConsultas.getNotProcessed()) {
        try {
          if (log.isDebugEnabled()) {
            log.debug("Procesando mensaje " + ba);
          }
          mp.processingMessage(ba);
        } catch (Throwable t) {
          log.error("Error al procesar un mensaje.", t);
        } finally {
          log.debug("Mensaje procesado " + ba);
        }
View Full Code Here

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

    if (lip != null) {
      return lip;
    } else {
      try {
        InetAddress inetAddr = InetAddress.getByName(address);
        MessageProcessor messageProcessor = this
            .createMessageProcessor(inetAddr, port, transport);
        if (this.isLoggingEnabled()) {
          this.getStackLogger().logDebug(
              "Created Message Processor: " + address
                  + " port = " + port + " transport = "
                  + transport);
        }
        lip = new ListeningPointImpl(this, port, transport);
        lip.messageProcessor = messageProcessor;
        messageProcessor.setListeningPoint(lip);
        this.listeningPoints.put(key, lip);
        // start processing messages.
        messageProcessor.start();
        return (ListeningPoint) lip;
      } catch (java.io.IOException ex) {
        if (isLoggingEnabled())
          getStackLogger().logError(
            "Invalid argument address = " + address + " port = "
View Full Code Here

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

    if (lip != null) {
      return lip;
    } else {
      try {
        InetAddress inetAddr = InetAddress.getByName(address);
        MessageProcessor messageProcessor = this
            .createMessageProcessor(inetAddr, port, transport);
        if (this.isLoggingEnabled(LogWriter.TRACE_DEBUG)) {
          this.getStackLogger().logDebug(
              "Created Message Processor: " + address
                  + " port = " + port + " transport = "
                  + transport);
        }
        lip = new ListeningPointImpl(this, port, transport);
        lip.messageProcessor = messageProcessor;
        messageProcessor.setListeningPoint(lip);
        this.listeningPoints.put(key, lip);
        // start processing messages.
        messageProcessor.start();
        return (ListeningPoint) lip;
      } catch (java.io.IOException ex) {
        if (isLoggingEnabled())
          getStackLogger().logError(
            "Invalid argument address = " + address + " port = "
View Full Code Here

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

    if (lip != null) {
      return lip;
    } else {
      try {
        InetAddress inetAddr = InetAddress.getByName(address);
        MessageProcessor messageProcessor = this
            .createMessageProcessor(inetAddr, port, transport);
        if (this.isLoggingEnabled(LogLevels.TRACE_DEBUG)) {
          this.getStackLogger().logDebug(
              "Created Message Processor: " + address
                  + " port = " + port + " transport = "
                  + transport);
        }
        lip = new ListeningPointImpl(this, port, transport);
        lip.messageProcessor = messageProcessor;
        messageProcessor.setListeningPoint(lip);
        this.listeningPoints.put(key, lip);
        // start processing messages.
        messageProcessor.start();
        return (ListeningPoint) lip;
      } catch (java.io.IOException ex) {
        if (isLoggingEnabled())
          getStackLogger().logError(
            "Invalid argument address = " + address + " port = "
View Full Code Here

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

    if (lip != null) {
      return lip;
    } else {
      try {
        InetAddress inetAddr = InetAddress.getByName(address);
        MessageProcessor messageProcessor = this
            .createMessageProcessor(inetAddr, port, transport);
        if (this.isLoggingEnabled(LogLevels.TRACE_DEBUG)) {
          this.getStackLogger().logDebug(
              "Created Message Processor: " + address
                  + " port = " + port + " transport = "
                  + transport);
        }
        lip = new ListeningPointImpl(this, port, transport);
        lip.messageProcessor = messageProcessor;
        messageProcessor.setListeningPoint(lip);
        this.listeningPoints.put(key, lip);
        // start processing messages.
        messageProcessor.start();
        return (ListeningPoint) lip;
      } catch (java.io.IOException ex) {
        if (isLoggingEnabled())
          getStackLogger().logError(
            "Invalid argument address = " + address + " port = "
View Full Code Here

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

        if (lip != null) {
            return lip;
        } else {
            try {
                InetAddress inetAddr = InetAddress.getByName(address);
                MessageProcessor messageProcessor = this.createMessageProcessor(inetAddr, port,
                        transport);
                if (this.isLoggingEnabled()) {
                    this.getLogWriter().logDebug(
                            "Created Message Processor: " + address + " port = " + port
                                    + " transport = " + transport);
                }
                lip = new ListeningPointImpl(this, port, transport);
                lip.messageProcessor = messageProcessor;
                messageProcessor.setListeningPoint(lip);
                this.listeningPoints.put(key, lip);
                // start processing messages.
                messageProcessor.start();
                return (ListeningPoint) lip;
            } catch (java.io.IOException ex) {
                getLogWriter().logError(
                        "Invalid argument address = " + address + " port = " + port
                                + " transport = " + transport);
View Full Code Here

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

    if (lip != null) {
      return lip;
    } else {
      try {
        InetAddress inetAddr = InetAddress.getByName(address);
        MessageProcessor messageProcessor = this
            .createMessageProcessor(inetAddr, port, transport);
        if (logger.isLoggingEnabled(LogLevels.TRACE_DEBUG)) {
          this.logger.logDebug(
              "Created Message Processor: " + address
                  + " port = " + port + " transport = "
                  + transport);
        }
        lip = new ListeningPointImpl(this, port, transport);
        lip.messageProcessor = messageProcessor;
        messageProcessor.setListeningPoint(lip);
        this.listeningPoints.put(key, lip);
        // start processing messages.
        messageProcessor.start();
        return (ListeningPoint) lip;
      } catch (java.io.IOException ex) {
        if (logger.isLoggingEnabled())
          logger.logError(
            "Invalid argument address = " + address + " port = "
View Full Code Here

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

            return (ConnectionOrientedMessageProcessor)((ListeningPointImpl) shootme.listeningPoint).getMessageProcessor();
        }
       
        public TCPMessageChannel getTestChannel() {
            try {
                MessageProcessor processor = ((ListeningPointImpl) shootme.listeningPoint).getMessageProcessor();
                Field field = ConnectionOrientedMessageProcessor.class.getDeclaredField("messageChannels");
                field.setAccessible(true);

                Map<String, TCPMessageChannel> tcpMessageChannels = (Map<String, TCPMessageChannel>) field.get(processor);
                Iterator<TCPMessageChannel> itr = tcpMessageChannels.values().iterator();
View Full Code Here

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

            }
        }

        TCPMessageChannel getTestChannel() {
            try {
                MessageProcessor processor = ((ListeningPointImpl) shootist.listeningPoint).getMessageProcessor();
                Field field = ConnectionOrientedMessageProcessor.class.getDeclaredField("messageChannels");
                field.setAccessible(true);

                Map<String, TCPMessageChannel> tcpMessageChannels = (Map<String, TCPMessageChannel>) field.get(processor);
                return tcpMessageChannels.values().iterator().next();
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.