|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.thymeleaf.util.UrlUtils
public final class UrlUtils
General utilities for URI/URLs.
Method Summary | |
---|---|
static String |
encodePath(String path)
Encodes the given String as a section of a URL path. |
static String |
encodePathSegment(String pathSegment)
Encodes the given String as a segment of a URL path. |
static String |
encodeQueryParam(String queryParam)
Encodes the given URL query parameter, using the 'UTF-8' encoding. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String encodeQueryParam(String queryParam)
Encodes the given URL query parameter, using the 'UTF-8' encoding.
queryParam
- the query parameter to be encoded
public static String encodePath(String path)
Encodes the given String as a section of a URL path. This section might include '/' level separators, which will be kept.
path
- the path to be encoded
public static String encodePathSegment(String pathSegment)
Encodes the given String as a segment of a URL path. This section cannot include '/' level separators, so any instances of this char will be encoded.
pathSegment
- the path segment to be encoded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |