public class AssetsControllerHelper
extends java.lang.Object
Constructor and Description |
---|
AssetsControllerHelper() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
normalizePathWithoutLeadingSlash(java.lang.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 java.lang.String normalizePathWithoutLeadingSlash(java.lang.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.Copyright © 2016 ninjaframework. All Rights Reserved.