Class ResourceUtil
java.lang.Object
com.github.toolarium.jwebserver.util.ResourceUtil
Resource utility.
-
Method Summary
Modifier and TypeMethodDescriptionCanonicalizestatic ResourceUtilGet the instanceprepareString(String[] input, int size) Prepare stringSlashifytoString(io.undertow.server.handlers.resource.Resource resource) Convert a resource into a string
-
Method Details
-
getInstance
Get the instance- Returns:
- the instance
-
slashify
Slashify- Parameters:
base- the path- Returns:
- the slashified string
-
canonicalize
Canonicalize- Parameters:
s- the string to canonicalize- Returns:
- the canonicalized string
-
prepareString
Prepare string- Parameters:
input- the inputsize- the size of the string- Returns:
- the prepared string
-
toString
Convert a resource into a string- Parameters:
resource- the resource- Returns:
- the string
-