org.webpieces.devrouter.impl.DevCompressionCacheSetup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of http-router-dev Show documentation
Show all versions of http-router-dev Show documentation
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
package org.webpieces.devrouter.impl;
import java.util.List;
import javax.inject.Singleton;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.webpieces.router.impl.compression.CompressionCacheSetup;
import org.webpieces.router.impl.compression.FileMeta;
import org.webpieces.router.impl.routers.FStaticRouter;
@Singleton
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