All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webpieces.devrouter.impl.DevCompressionCacheSetup Maven / Gradle / Ivy

Go to download

Library that swaps out specific http-router components to be able to compile code on any request that has changed for use in development servers

There is a newer version: 2.1.1
Show newest version
package org.webpieces.devrouter.impl;

import java.util.List;

import org.webpieces.router.impl.StaticRoute;
import org.webpieces.router.impl.compression.CompressionCacheSetup;
import org.webpieces.router.impl.compression.FileMeta;
import org.webpieces.util.logging.Logger;
import org.webpieces.util.logging.LoggerFactory;

public class DevCompressionCacheSetup implements CompressionCacheSetup {

	private static final Logger log = LoggerFactory.getLogger(DevCompressionCacheSetup.class);
	
	@Override
	public void setupCache(List staticRoutes) {
		log.info("SHORT CIRCUIT CompressionCacheSetup since we are running in development mode");
	}

	@Override
	public FileMeta relativeUrlToHash(String path) {
		return null;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy