Package de.iritgo.aktera.model

Examples of de.iritgo.aktera.model.ModelResponse.createOutput()


    {
      log.error("No URL base specified");
      throw new ModelException("No URL base specified");
    }

    Output player = response.createOutput("player");

    player.setAttribute("playerUrl", getConfiguration().getChild("playerUrl").getValue(null));
    player.setAttribute("urlBase", urlBase);
    player.setAttribute("server", request.getServerName());
View Full Code Here


    player.setAttribute("urlBase", urlBase);
    player.setAttribute("server", request.getServerName());

    response.add(player);

    Output outList = response.createOutput("list");

    response.add(outList);

    List<File> files = new LinkedList(FileUtils.listFiles(FileTools.newAkteraFile(downloadDir), new IOFileFilter()
    {
View Full Code Here

      }
    });

    for (File file : files)
    {
      Output outFile = response.createOutput("file" + file.hashCode());

      try
      {
        outFile.setContent(file.getName());
        outFile.setAttribute("extension", FilenameUtils.getExtension(file.getName()));
View Full Code Here

    ModelResponse res = req.createResponse();

    try
    {
      Output report = res.createOutput("report");

      res.add(report);

      String reportFileName = getConfiguration().getChild("fileName").getValue(null);
View Full Code Here

        Command cmd = res.createCommand(getConfiguration().getChild("cmd-error").getValue());

        cmd.setName("cmdError");
        res.add(cmd);

        res.add(res.createOutput("error", "Y"));
      }
      else
      {
        Command cmd = res.createCommand(getConfiguration().getChild("cmd-report").getValue());
View Full Code Here

   */
  public ModelResponse execute(ModelRequest req) throws ModelException
  {
    ModelResponse res = req.createResponse();
    Locale locale = req.getLocale();
    Output outDate = res.createOutput("currentDate");
    SimpleDateFormat simpleDate = new SimpleDateFormat("EEE, dd. MMM yyyy - HH:mm", locale);

    outDate.setContent(simpleDate.format(new Date(System.currentTimeMillis())));
    res.add(outDate);

View Full Code Here

      ByteArrayOutputStream os = new ByteArrayOutputStream();

      ImageIO.write(image, "jpg", os);

      Output out = res.createOutput("data");

      out.setContent(os.toByteArray());
      res.add(out);
      os.close();
View Full Code Here

    ModelResponse res = req.createResponse();

    try
    {
      Configuration sysConfig = (Configuration) context.get("keel.config.system");
      Output sysOutput = res.createOutput("system");

      addChildren(res, sysOutput, sysConfig);
      res.add(sysOutput);

      Configuration logConfig = (Configuration) context.get("keel.config.log");
View Full Code Here

      addChildren(res, sysOutput, sysConfig);
      res.add(sysOutput);

      Configuration logConfig = (Configuration) context.get("keel.config.log");
      Output logOutput = res.createOutput("log");

      addChildren(res, logOutput, logConfig);
      res.add(logOutput);

      Configuration roleConfig = (Configuration) context.get("keel.config.roles");
View Full Code Here

      addChildren(res, logOutput, logConfig);
      res.add(logOutput);

      Configuration roleConfig = (Configuration) context.get("keel.config.roles");
      Output roleOutput = res.createOutput("role");

      addChildren(res, roleOutput, roleConfig);
      res.add(roleOutput);

      Configuration instrConfig = (Configuration) context.get("keel.config.instr");
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.