|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.agilecoders.wicket.webjars.util.Helper
public final class Helper
some helper methods
| Field Summary | |
|---|---|
static String |
PATH_PREFIX
|
| Constructor Summary | |
|---|---|
Helper()
|
|
| Method Summary | |
|---|---|
static String |
appendLeadingSlash(String path)
prepends a leading slash if there is none. |
static String |
prependWebjarsPathIfMissing(String path)
prepends the webjars path if missing |
static String |
removeLeadingSlash(String path)
Removes the leading slash if there is one. |
static String |
reversePath(String assetPath)
Make paths like aa/bb/cc = cc/bb/aa. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PATH_PREFIX
| Constructor Detail |
|---|
public Helper()
| Method Detail |
|---|
public static String prependWebjarsPathIfMissing(String path)
path - the file name to check
public static String appendLeadingSlash(String path)
path - the path
public static String removeLeadingSlash(String path)
path - the path
public static String reversePath(String assetPath)
assetPath - the path to revert
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||