Package | Description |
---|---|
org.forgerock.http.header |
Processes HTTP message header fields.
|
org.forgerock.http.util |
Miscellaneous utility classes.
|
org.forgerock.json.resource |
Classes and interfaces for core types including connections, request
handlers, resources, and their exceptions.
|
org.forgerock.openam.auth.node.api |
This package contains the API for writing authentication nodes.
|
org.forgerock.selfservice.stages.utils |
This package contains some utility classes helpful for stage creators.
|
org.forgerock.util.i18n |
Utility classes for dealing with internationalization (i18n).
|
Modifier and Type | Method and Description |
---|---|
PreferredLocales |
AcceptLanguageHeader.getLocales()
Returns the
PreferredLocales instance that represents this header. |
Modifier and Type | Method and Description |
---|---|
static AcceptLanguageHeader |
AcceptLanguageHeader.valueOf(PreferredLocales locales)
Creates an accept language header representation for a
PreferredLocales instance. |
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.ObjectWriter |
Json.makeLocalizingObjectWriter(com.fasterxml.jackson.databind.ObjectMapper mapper,
PreferredLocales locales)
Make an object writer that contains the provided locales for serialization of
LocalizableString
instances. |
Modifier and Type | Method and Description |
---|---|
PreferredLocales |
UpdateRequest.getPreferredLocales() |
PreferredLocales |
Request.getPreferredLocales()
Get the locale preference for the request.
|
PreferredLocales |
ReadRequest.getPreferredLocales() |
PreferredLocales |
QueryRequest.getPreferredLocales() |
PreferredLocales |
PatchRequest.getPreferredLocales() |
PreferredLocales |
DeleteRequest.getPreferredLocales() |
PreferredLocales |
CreateRequest.getPreferredLocales() |
PreferredLocales |
ActionRequest.getPreferredLocales() |
Modifier and Type | Method and Description |
---|---|
UpdateRequest |
UpdateRequest.setPreferredLocales(PreferredLocales preferredLocales) |
Request |
Request.setPreferredLocales(PreferredLocales preferredLocales)
Set the locale preference for the request.
|
ReadRequest |
ReadRequest.setPreferredLocales(PreferredLocales preferredLocales) |
QueryRequest |
QueryRequest.setPreferredLocales(PreferredLocales preferredLocales) |
PatchRequest |
PatchRequest.setPreferredLocales(PreferredLocales preferredLocales) |
DeleteRequest |
DeleteRequest.setPreferredLocales(PreferredLocales preferredLocales) |
CreateRequest |
CreateRequest.setPreferredLocales(PreferredLocales preferredLocales) |
ActionRequest |
ActionRequest.setPreferredLocales(PreferredLocales preferredLocales) |
Modifier and Type | Method and Description |
---|---|
List<OutcomeProvider.Outcome> |
OutcomeProvider.getOutcomes(PreferredLocales locales,
JsonValue nodeAttributes)
Returns a ordered list of possible node outcomes with localised display names.
|
Modifier and Type | Method and Description |
---|---|
static String |
LocaleUtils.getTranslationFromLocaleMap(PreferredLocales preferredLocales,
Map<Locale,String> translations)
Using the user's preferred locales (for example, from the "Accept-Language" header in the HTTP context),
select the most optimal (string) translation from the map.
|
Modifier and Type | Method and Description |
---|---|
String |
LocalizableString.toTranslatedString(PreferredLocales locales)
Returns the contained string, translated if applicable.
|
Copyright © 2010-2018, ForgeRock All Rights Reserved.