public class AssetsControllerHelper extends Object
| Constructor and Description |
|---|
AssetsControllerHelper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDirectoryURL(URL url)
Check the URL is a directory.
|
String |
normalizePathWithoutLeadingSlash(String fileName,
boolean enforceUnixSeparator)
If we get - for whatever reason - a relative URL like
assets/../conf/application.conf we expand that to the "real" path.
|
public String normalizePathWithoutLeadingSlash(String fileName, boolean enforceUnixSeparator)
fileName - A potential "fileName"enforceUnixSeparator - If true it will force the usage of the unix separator '/'
If false it will use the separator of the underlying system.
usually '/' in case of unix and '\' in case of windows.public boolean isDirectoryURL(URL url)
url - A URL of assetsCopyright © 2019 ninjaframework. All rights reserved.