Beispiel #1
0
  /**
   * Fills the given {@link Request request} with parameters.
   *
   * @param request the request to fill
   * @throws ProcessorException if an error occurred
   */
  @Override
  public void initRequestFromUI(final Request request) throws ProcessorException {
    request.addInputProduct(createInputProductRef());
    final Parameter outputProductParam = getParamGroup().getParameter(OUTPUT_PRODUCT_PARAM_NAME);
    if (StringUtils.isNullOrEmpty(outputProductParam.getValueAsText())) {
      throw new ProcessorException("No output product specified."); /*I18N*/
    }

    request.addOutputProduct(createOutputProductRef());
    request.addParameter(createOutputFormatParamForRequest());
    request.addParameter(getParamGroup().getParameter(LOG_PREFIX_PARAM_NAME));
    request.addParameter(getParamGroup().getParameter(LOG_TO_OUTPUT_PARAM_NAME));
  }