Example usage for org.springframework.ui Model toString

List of usage examples for org.springframework.ui Model toString

Introduction

In this page you can find the example usage for org.springframework.ui Model toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:org.apereo.lap.controllers.HomeController.java

/**
 * Selects the home page and populates the model with a message
 *///from www .  j a  v a2s  .  c  o  m
@RequestMapping(value = "/", method = RequestMethod.GET)
public String home(Model model) {

    if (logger.isDebugEnabled()) {
        logger.debug("Model: " + model.toString());
    }

    model.addAttribute("dev", "AZ"); // for testing
    model.addAttribute("processors", processingManagerService.getPipelineProcessors());
    model.addAttribute("pipelines", processingManagerService.getPipelineConfigs().values());
    model.addAttribute("outputDir", configuration.getOutputDirectory().getAbsolutePath());
    model.addAttribute("inputDir", configuration.getInputDirectory().getAbsolutePath());
    model.addAttribute("pipelinesDir", configuration.getPipelinesDirectory().getAbsolutePath());
    model.addAttribute("temporaryDB", configuration.getConfig().getString("db.url"));
    model.addAttribute("persistentDB", configuration.getConfig().getString("edb.url"));
    return "home";
}