Package | Description |
---|---|
org.glassfish.jersey.uri |
Common Jersey classes that provide support for JAX-RS URI templates and
encoding/decoding of URI components.
|
org.glassfish.jersey.uri.internal |
Common Jersey internal classes that provide support for JAX-RS URI templates and
encoding/decoding of URI components.
|
Modifier and Type | Method and Description |
---|---|
static UriComponent.Type |
UriComponent.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UriComponent.Type[] |
UriComponent.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static String |
UriComponent.contextualEncode(String s,
UriComponent.Type t)
Contextually encodes the characters of string that are either non-ASCII
characters or are ASCII characters that must be percent-encoded using the
UTF-8 encoding.
|
static String |
UriComponent.contextualEncode(String s,
UriComponent.Type t,
boolean template)
Contextually encodes the characters of string that are either non-ASCII
characters or are ASCII characters that must be percent-encoded using the
UTF-8 encoding.
|
static String |
UriComponent.decode(String s,
UriComponent.Type t)
Decodes characters of a string that are percent-encoded octets using
UTF-8 decoding (if needed).
|
static String |
UriComponent.encode(String s,
UriComponent.Type t)
Encodes the characters of string that are either non-ASCII characters
or are ASCII characters that must be percent-encoded using the
UTF-8 encoding.
|
static String |
UriComponent.encode(String s,
UriComponent.Type t,
boolean template)
Encodes the characters of string that are either non-ASCII characters
or are ASCII characters that must be percent-encoded using the
UTF-8 encoding.
|
static String |
UriTemplate.resolveTemplateValues(UriComponent.Type type,
String template,
boolean encode,
Map<String,?> _mapValues)
Resolves template variables in the given
template from _mapValues . |
static boolean |
UriComponent.valid(String s,
UriComponent.Type t)
Validates the legal characters of a percent-encoded string that
represents a URI component type.
|
static boolean |
UriComponent.valid(String s,
UriComponent.Type t,
boolean template)
Validates the legal characters of a percent-encoded string that
represents a URI component type.
|
static void |
UriComponent.validate(String s,
UriComponent.Type t)
Validates the legal characters of a percent-encoded string that
represents a URI component type.
|
static void |
UriComponent.validate(String s,
UriComponent.Type t,
boolean template)
Validates the legal characters of a percent-encoded string that
represents a URI component type.
|
Modifier and Type | Method and Description |
---|---|
static String |
UriPart.percentEncode(String toEncode,
UriComponent.Type componentType,
boolean encode)
Percent encode the given text
|
String |
UriPart.resolve(Object value,
UriComponent.Type componentType,
boolean encode)
Returns the resolved template variable when the value object is passed
|
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.