Class LocaleController


  • @RestController
    @Api(description="The locale/language controller",
         name="Locale controller")
    public class LocaleController
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.util.Locale> getAll()  
      java.util.Locale getDefault()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocaleController

        public LocaleController()
    • Method Detail

      • getAll

        @ApiMethod(description="get all supported locales")
        @RequestMapping(value={"/latest/locales","/v2/locales","/v1/locales"},
                        method=GET)
        @ApiResponseObject
        public java.util.List<java.util.Locale> getAll()
      • getDefault

        @ApiMethod(description="get default locale")
        @RequestMapping(value={"/latest/locales/default","/v2/locales/default","/v1/locales/default"},
                        method=GET)
        @ApiResponseObject
        public java.util.Locale getDefault()