Package com.github.dandelion.core.asset.cache

Examples of com.github.dandelion.core.asset.cache.AssetCacheManager


      System.out.println(getConfigurationFromPage(page));
    }
  }
 
  public String getConfigurationFromPage(String page) {
    AssetCacheManager cacheManager = new AssetCacheManager(null);
    Asset asset = new Asset("dandelion-datatables", "0.10.0", AssetType.js);
    String cacheKey = cacheManager.generateCacheKey("http://" + SERVER_HOST + ":" + SERVER_PORT + "/thymeleaf/" + page, asset);
    String url = "http://" + SERVER_HOST + ":" + SERVER_PORT + DandelionServlet.DANDELION_ASSETS_URL + cacheKey;
    try {
      URL urlLocation = new URL(url);
      return ResourceUtils.getContentFromInputStream(urlLocation.openStream());
    }
View Full Code Here


      System.out.println(getConfigurationFromPage(page));
    }
  }
 
  public String getConfigurationFromPage(String page) {
    AssetCacheManager cacheManager = new AssetCacheManager(null);
    Asset asset = new Asset("dandelion-datatables", "0.10.0", AssetType.js);
    String cacheKey = cacheManager.generateCacheKey("http://" + SERVER_HOST + ":" + SERVER_PORT + "/" + page + ".jsp", asset);
    String url = "http://" + SERVER_HOST + ":" + SERVER_PORT + DandelionServlet.DANDELION_ASSETS_URL + cacheKey;
    try {
      URL urlLocation = new URL(url);
      return ResourceUtils.getContentFromInputStream(urlLocation.openStream());
    }
View Full Code Here

    initAssetLocators();
    initAssetCache();
    initAssetProcessors();

    assetProcessorManager = new AssetProcessorManager(this);
    assetCacheManager = new AssetCacheManager(this);

    initBundleStorage();
    initMBean(filterConfig);
  }
View Full Code Here

TOP

Related Classes of com.github.dandelion.core.asset.cache.AssetCacheManager

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.