public static enum URIBuilder.EncodingPolicy extends Enum<URIBuilder.EncodingPolicy>
URIBuilder.
This enum controls how characters are percent-encoded when constructing a URI,
allowing flexibility between strict encoding and RFC 3986-compliant behavior.| Enum Constant and Description |
|---|
ALL_RESERVED
Encodes all reserved characters, allowing only unreserved characters
(ALPHA, DIGIT, "-", "
|
RFC_3986
Follows RFC 3986 component-specific encoding rules.
|
| Modifier and Type | Method and Description |
|---|---|
static URIBuilder.EncodingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static URIBuilder.EncodingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final URIBuilder.EncodingPolicy ALL_RESERVED
public static final URIBuilder.EncodingPolicy RFC_3986
PercentCodec.FRAGMENT.
This policy ensures compliance with RFC 3986 while maintaining interoperability.public static URIBuilder.EncodingPolicy[] values()
for (URIBuilder.EncodingPolicy c : URIBuilder.EncodingPolicy.values()) System.out.println(c);
public static URIBuilder.EncodingPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.