Class UserAgentConstant
java.lang.Object
software.amazon.awssdk.core.internal.useragent.UserAgentConstant
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
appendFieldAndSpace
(StringBuilder builder, String name, String value) Add a metadata field to the string builder, followed by space.static void
appendNonEmptyField
(StringBuilder builder, String name, String value) Add a metadata field to the string builder only if 'value' is non-empty.static void
appendSpaceAndField
(StringBuilder builder, String name, String value) Add a metadata field to the string builder, preceded by space.static String
Concatenates two values with the specified separator, if the second value is not null/empty, otherwise returns the first value.static String
According to specifications, the SDK user agent consists of metadata fields separated by RWS characters - in this implementation, space.static String
sanitizeInput
(String input) Replace any spaces, parentheses in the input with underscores.static String
According to specifications, an SDK user agent pair is a name, value pair concatenated with a '#' (HASH).static String
uaPairOrNull
(String name, String value) According to specifications, an SDK user agent pair is a name, value pair concatenated with a '#' (HASH).
-
Field Details
-
API_METADATA
- See Also:
-
OS_METADATA
- See Also:
-
LANG_METADATA
- See Also:
-
UA_METADATA
- See Also:
-
ENV_METADATA
- See Also:
-
JAVA_SDK_METADATA
- See Also:
-
FEATURE_METADATA
- See Also:
-
CONFIG_METADATA
- See Also:
-
FRAMEWORK_METADATA
- See Also:
-
METADATA
- See Also:
-
BUSINESS_METADATA
- See Also:
-
INTERNAL_METADATA_MARKER
- See Also:
-
APP_ID
- See Also:
-
UA_VERSION
- See Also:
-
SLASH
- See Also:
-
HASH
- See Also:
-
SPACE
- See Also:
-
COMMA
- See Also:
-
IO
- See Also:
-
HTTP
- See Also:
-
RETRY_MODE
- See Also:
-
AUTH_SOURCE
- See Also:
-
-
Method Details
-
field
According to specifications, the SDK user agent consists of metadata fields separated by RWS characters - in this implementation, space. Each field is represented by the name of the field, as specified and the contents of the field, separated with a '/' (SLASH). Contents can be a single token, a specified value or a uaPair. -
uaPair
-
uaPairOrNull
-
appendFieldAndSpace
Add a metadata field to the string builder, followed by space. If 'value' can be empty, useappendNonEmptyField(StringBuilder, String, String)
instead. -
appendSpaceAndField
Add a metadata field to the string builder, preceded by space. If 'value' can be empty, useappendNonEmptyField(StringBuilder, String, String)
instead. -
appendNonEmptyField
Add a metadata field to the string builder only if 'value' is non-empty. Also seeappendFieldAndSpace(StringBuilder, String, String)
-
sanitizeInput
-
concat
-