|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.craftforge.essential.controller.utils.UriUtils
public class UriUtils
Utilities for controller actions.
| Constructor Summary | |
|---|---|
UriUtils()
|
|
| Method Summary | |
|---|---|
static Map<String,String[]> |
getUrlParameters(String encoding,
String uriQueryPart)
Gets the parameters from an uri query part as a map-list combination. |
static String |
slimUri(String uri)
Replaces all duplicate slashes of an URI and removes leading as well as following slashes. |
static String[] |
splitPath(String path)
Splits a resource path into path parts. |
static String |
standardUri(String uri)
Replaces all duplicate slashes of an URI, removes all following slashes and ensures a leading slash. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UriUtils()
| Method Detail |
|---|
public static String slimUri(String uri)
uri - The URI
public static String standardUri(String uri)
uri - The URI
public static Map<String,String[]> getUrlParameters(String encoding,
String uriQueryPart)
throws UnsupportedEncodingException
encoding - The URL encodinguriQueryPart - The query part of the uri without leading question mark
UnsupportedEncodingException - if encoding is not supported by URLDecoderpublic static String[] splitPath(String path)
path - The resource path
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||