@Beta public class ODataUriFactory extends Object
Modifier and Type | Field and Description |
---|---|
static char[] |
SAFE_CHARS_IN_QUERY
The characters which are not encoded in the query part of a URL during URL encoding
|
Constructor and Description |
---|
ODataUriFactory() |
Modifier and Type | Method and Description |
---|---|
static String |
encodePath(String path)
Encodes the individual path parts of a string.
|
static String |
encodePathSegment(String path)
Encodes an individual part of a URL path.
|
static String |
encodeQuery(String input)
Encodes all characters in the query except ones listed in
SAFE_CHARS_IN_QUERY |
public static final char[] SAFE_CHARS_IN_QUERY
@Nonnull public static String encodePath(@Nonnull String path)
UrlEscapers.urlPathSegmentEscaper()
.path
- The unencoded URL path.@Nonnull public static String encodePathSegment(@Nonnull String path)
UrlEscapers.urlPathSegmentEscaper()
.path
- The unencoded URL path segment.@Nonnull public static String encodeQuery(@Nonnull String input)
SAFE_CHARS_IN_QUERY
input
- The query string of the requestCopyright © 2021 SAP SE. All rights reserved.