Package org.springframework.core.io.support

Examples of org.springframework.core.io.support.LocalizedResourceHelper


    /**
     * Constructs a new LocalizedTemplateResolver.
     */
    public LocalizedTemplateResolver() {
        this.helper = new LocalizedResourceHelper();
    }
View Full Code Here


    public String getExtension() {
        return extension;
    }

    public void setResourceLoader(ResourceLoader resourceLoader) {
        helper = new LocalizedResourceHelper(resourceLoader);
    }
View Full Code Here

    public final void afterPropertiesSet() throws Exception {
        doAfterPropertiesSet();
        Assert.notNull(resourceLoader, "Property 'resourceLoader' is required");
        Assert.notNull(engine, "Property 'engine' is required");
        localizedResourceHelper = new LocalizedResourceHelper(resourceLoader);
    }
View Full Code Here

   * @param request current HTTP request
   * @return the template workbook
   * @throws Exception in case of failure
   */
  protected Workbook getTemplateSource(String url, HttpServletRequest request) throws Exception {
    LocalizedResourceHelper helper = new LocalizedResourceHelper(getApplicationContext());
    Locale userLocale = RequestContextUtils.getLocale(request);
    Resource inputFile = helper.findLocalizedResource(url, EXTENSION, userLocale);

    // Create the Excel document from the source.
    if (logger.isDebugEnabled()) {
      logger.debug("Loading Excel workbook from " + inputFile);
    }
View Full Code Here

   * @param request current HTTP request
   * @return the HSSFWorkbook
   * @throws Exception in case of failure
   */
  protected HSSFWorkbook getTemplateSource(String url, HttpServletRequest request) throws Exception {
    LocalizedResourceHelper helper = new LocalizedResourceHelper(getApplicationContext());
    Locale userLocale = RequestContextUtils.getLocale(request);
    Resource inputFile = helper.findLocalizedResource(url, EXTENSION, userLocale);

    // Create the Excel document from the source.
    if (logger.isDebugEnabled()) {
      logger.debug("Loading Excel workbook from " + inputFile);
    }
View Full Code Here

   * @param request current HTTP request
   * @return the template workbook
   * @throws Exception in case of failure
   */
  protected Workbook getTemplateSource(String url, HttpServletRequest request) throws Exception {
    LocalizedResourceHelper helper = new LocalizedResourceHelper(getApplicationContext());
    Locale userLocale = RequestContextUtils.getLocale(request);
    Resource inputFile = helper.findLocalizedResource(url, EXTENSION, userLocale);

    // Create the Excel document from the source.
    if (logger.isDebugEnabled()) {
      logger.debug("Loading Excel workbook from " + inputFile);
    }
View Full Code Here

   * @param request current HTTP request
   * @return the HSSFWorkbook
   * @throws Exception in case of failure
   */
  protected HSSFWorkbook getTemplateSource(String url, HttpServletRequest request) throws Exception {
    LocalizedResourceHelper helper = new LocalizedResourceHelper(getApplicationContext());
    Locale userLocale = RequestContextUtils.getLocale(request);
    Resource inputFile = helper.findLocalizedResource(url, EXTENSION, userLocale);

    // Create the Excel document from the source.
    if (logger.isDebugEnabled()) {
      logger.debug("Loading Excel workbook from " + inputFile);
    }
View Full Code Here

   * @param request current HTTP request
   * @return the template workbook
   * @throws Exception in case of failure
   */
  protected Workbook getTemplateSource(String url, HttpServletRequest request) throws Exception {
    LocalizedResourceHelper helper = new LocalizedResourceHelper(getApplicationContext());
    Locale userLocale = RequestContextUtils.getLocale(request);
    Resource inputFile = helper.findLocalizedResource(url, EXTENSION, userLocale);

    // Create the Excel document from the source.
    if (logger.isDebugEnabled()) {
      logger.debug("Loading Excel workbook from " + inputFile);
    }
View Full Code Here

   * @param request current HTTP request
   * @return the template workbook
   * @throws Exception in case of failure
   */
  protected Workbook getTemplateSource(String url, HttpServletRequest request) throws Exception {
    LocalizedResourceHelper helper = new LocalizedResourceHelper(getApplicationContext());
    Locale userLocale = RequestContextUtils.getLocale(request);
    Resource inputFile = helper.findLocalizedResource(url, EXTENSION, userLocale);

    // Create the Excel document from the source.
    if (logger.isDebugEnabled()) {
      logger.debug("Loading Excel workbook from " + inputFile);
    }
View Full Code Here

   * @param request current HTTP request
   * @return the HSSFWorkbook
   * @throws Exception in case of failure
   */
  protected HSSFWorkbook getTemplateSource(String url, HttpServletRequest request) throws Exception {
    LocalizedResourceHelper helper = new LocalizedResourceHelper(getApplicationContext());
    Locale userLocale = RequestContextUtils.getLocale(request);
    Resource inputFile = helper.findLocalizedResource(url, EXTENSION, userLocale);

    // Create the Excel document from the source.
    if (logger.isDebugEnabled()) {
      logger.debug("Loading Excel workbook from " + inputFile);
    }
View Full Code Here

TOP

Related Classes of org.springframework.core.io.support.LocalizedResourceHelper

Copyright © 2018 www.massapicom. 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.