49505152535455
* @param path the prefix used to match the request path; also the path where the static files are located in the file system. */ public StaticMiddleware(String path) { Preconditions.notNull(path, "no path provided."); this.prefix = fixPrefix(path); this.assetLoader = new FileAssetLoader(path); }
75767778798081
public StaticMiddleware(String path, String prefix) { Preconditions.notNull(path, "no path provided."); Preconditions.notNull(prefix, "no prefix provided."); this.prefix = fixPrefix(prefix); this.assetLoader = new FileAssetLoader(path); }