@Deprecated public final class UrlUtils extends Object
General utilities for URI/URLs.
Modifier and Type | Method and Description |
---|---|
static String |
encodePath(String path)
Deprecated.
Encodes the given String as a section of a URL path.
|
static String |
encodePathSegment(String pathSegment)
Deprecated.
Encodes the given String as a segment of a URL path.
|
static String |
encodeQueryParam(String queryParam)
Deprecated.
Encodes the given URL query parameter, using the 'UTF-8' encoding.
|
public static String encodeQueryParam(String queryParam)
Encodes the given URL query parameter, using the 'UTF-8' encoding.
queryParam
- the query parameter to be encodedpublic 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 encodedpublic 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 encodedCopyright © 2017 The THYMELEAF team. All rights reserved.