Examples of toMessage()


Examples of org.nasutekds.messages.MessageBuilder.toMessage()

      }
    } else {
      getSubCommandUsage(buffer, subCommand);
    }

    return buffer.toMessage().toString();
  }



  /**
 
View Full Code Here

Examples of org.nasutekds.messages.MessageBuilder.toMessage()

    }

    MessageBuilder buffer = new MessageBuilder();
    buffer.append(INFO_GLOBAL_HELP_REFERENCE.get(scriptName));
    buffer.append(EOL);
    return buffer.toMessage();
  }



  /**
 
View Full Code Here

Examples of org.nasutekds.messages.MessageBuilder.toMessage()

    {
      MessageBuilder mb = new MessageBuilder();
      mb.append(TaskMessages.ERR_TASK_INITIALIZE_INVALID_DN.get());
      mb.append(e.getMessage());
      throw new DirectoryException(ResultCode.UNWILLING_TO_PERFORM,
          mb.toMessage());
    }

    AttributeType typeMaxDuration;
    typeMaxDuration =
      getAttributeType(ATTR_TASK_CONFLICTS_HIST_PURGE_MAX_DURATION, true);
View Full Code Here

Examples of org.nasutekds.messages.MessageBuilder.toMessage()

      {
        MessageBuilder mb = new MessageBuilder();
        mb.append(TaskMessages.ERR_TASK_INITIALIZE_INVALID_GENERATION_ID.get());
        mb.append(e.getMessage());
        throw new DirectoryException(ResultCode.CLIENT_SIDE_PARAM_ERROR,
            mb.toMessage());
      }
    }

    // Retrieves the replication domain
    AttributeType typeDomainBase;
View Full Code Here

Examples of org.nasutekds.messages.MessageBuilder.toMessage()

    catch(DirectoryException de)
    {
      // This log will go to the task log message
      MessageBuilder mb = new MessageBuilder();
      mb.append(de.getMessageObject());
      logError(mb.toMessage());

      return TaskState.STOPPED_BY_ERROR;
    }
    return TaskState.COMPLETED_SUCCESSFULLY;
  }
View Full Code Here

Examples of org.nasutekds.messages.MessageBuilder.toMessage()

        throw new ApplicationException(
            ReturnCode.APPLICATION_ERROR,
                INFO_UPGRADE_ORACLE_UNSUPPORTED.get(
                        currentBuildInfo.toString(),
                        newBuildInfo.toString(),
                        reason.toMessage()),
                null);
      } else {
        if (ui != null) {
          String lineBreak = ui.isCLI() ?
              Constants.LINE_SEPARATOR : Constants.HTML_LINE_BREAK;
View Full Code Here

Examples of org.nasutekds.messages.MessageBuilder.toMessage()

          mb.append(getLineBreak());
        }
        mb.append(formatString(msg));
      }

      notifyListeners(mb.toMessage());
      applicationPrintStreamReceived(msg);
      LOG.log(Level.INFO, msg);
      isFirstLine = false;
    }
View Full Code Here

Examples of org.nasutekds.messages.MessageBuilder.toMessage()

        mb.append(formatter.getFormattedPoint());
      }
      Integer ratio = getRatio(getCurrentProgressStep());
      Message currentPhaseSummary = getSummary(getCurrentProgressStep());
      listenerDelegate.notifyListeners(getCurrentProgressStep(),
          ratio, currentPhaseSummary, mb.toMessage());
      t = new Thread(this);
      t.start();
    }

    /**
 
View Full Code Here

Examples of org.springframework.amqp.support.converter.JsonMessageConverter.toMessage()

  @Test // INT-2090
  public void jsonTypeIdNotOverwritten() {
    SimpleAmqpHeaderMapper headerMapper = new SimpleAmqpHeaderMapper();
    JsonMessageConverter converter = new JsonMessageConverter();
    MessageProperties amqpProperties = new MessageProperties();
    converter.toMessage("123", amqpProperties);
    Map<String, Object> headerMap = new HashMap<String, Object>();
    headerMap.put("__TypeId__", "java.lang.Integer");
    MessageHeaders messageHeaders = new MessageHeaders(headerMap);
    headerMapper.fromHeaders(messageHeaders, amqpProperties);
    assertEquals("java.lang.String", amqpProperties.getHeaders().get("__TypeId__"));
View Full Code Here

Examples of org.springframework.amqp.support.converter.MessageConverter.toMessage()

        if(converter == null) //Try to fall back
            converter = this.fallbackConverter;
        if(converter == null) //Can't even fall back, punt
            throw new MessageConversionException("Cannot find converter for content type of "+contentType);
       
        return converter.toMessage(object, messageProperties);
    }

    @Override
    public Object fromMessage(Message message) throws MessageConversionException {
        MessageProperties messageProperties = message.getMessageProperties();
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.