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

Examples of com.github.dandelion.core.asset.cache.AssetCacheManager.generateCacheKey()


  }
 
  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


  }
 
  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

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.