Class LocaleContext

  • All Implemented Interfaces:
    org.forgerock.services.context.Context

    public class LocaleContext
    extends org.forgerock.services.context.AbstractContext
    Determines the locale corresponding to the incoming CREST request by utilizing ISLocaleContext, and makes the locale available as a Context.
    • Field Summary

      • Fields inherited from class org.forgerock.services.context.AbstractContext

        data
    • Constructor Summary

      Constructors 
      Constructor Description
      LocaleContext​(org.forgerock.services.context.Context parent)  
    • Constructor Detail

      • LocaleContext

        public LocaleContext​(org.forgerock.services.context.Context parent)
    • Method Detail

      • getLocale

        public Locale getLocale()
        The Locale corresponding to the incoming request.
        Returns:
        The client's preferred locale.