public interface LocaleOverrideService
LocaleOverrideService is a singleton plugin that can apply custom logic for resolving the locale of a
HTTP request. This locale is used for localization of content in HTTP responses generated by PingAccess.
A custom LocaleOverrideService will replace the default override logic. The default logic uses the
ping-accept-language HTTP cookie to determine the locale.
LocaleOverrideService should be placed in a
META-INF/services/com.pingidentity.pa.sdk.localization.LocaleOverrideService resource file
that is packaged in the jar containing the compiled class for the implementation. This signals to PingAccess that
the class is a valid LocaleOverrideService implementation.com.pingidentity.pa.sdk.plugins| Modifier and Type | Method and Description |
|---|---|
List<Locale> |
getPreferredLocales(Exchange exchange)
Resolves preferred locales for the given request.
|
Copyright 2023 Ping Identity Corp. All rights reserved.