Class TestConfiguration.ConverterController

  • Enclosing class:
    TestConfiguration

    @RestController
    public static class TestConfiguration.ConverterController
    extends Object
    The converter controller.
    Author:
    Christian Bremer
    • Constructor Detail

      • ConverterController

        public ConverterController()
    • Method Detail

      • convertJavaLocale

        @GetMapping(path="/java-locale/{locale}",
                    produces="text/plain")
        public org.springframework.http.ResponseEntity<String> convertJavaLocale​(@PathVariable("locale")
                                                                                 org.bremersee.common.model.JavaLocale javaLocale)
        Convert java locale response entity.
        Parameters:
        javaLocale - the java locale
        Returns:
        the response entity
      • convertLocale

        @GetMapping(path="/locale/{locale}",
                    produces="text/plain")
        public org.springframework.http.ResponseEntity<String> convertLocale​(@PathVariable("locale")
                                                                             Locale locale)
        Convert locale response entity.
        Parameters:
        locale - the locale
        Returns:
        the response entity
      • convertMongoSearchLanguage

        @GetMapping(path="/mongo/{value}",
                    produces="text/plain")
        public org.springframework.http.ResponseEntity<String> convertMongoSearchLanguage​(@PathVariable("value")
                                                                                          org.bremersee.common.model.MongoSearchLanguage value)
        Convert mongo search language response entity.
        Parameters:
        value - the value
        Returns:
        the response entity
      • convertThreeLetterCountry

        @GetMapping(path="/3country/{value}",
                    produces="text/plain")
        public org.springframework.http.ResponseEntity<String> convertThreeLetterCountry​(@PathVariable("value")
                                                                                         org.bremersee.common.model.ThreeLetterCountryCode value)
        Convert three letter country response entity.
        Parameters:
        value - the value
        Returns:
        the response entity
      • convertThreeLetterLanguage

        @GetMapping(path="/3language/{value}",
                    produces="text/plain")
        public org.springframework.http.ResponseEntity<String> convertThreeLetterLanguage​(@PathVariable("value")
                                                                                          org.bremersee.common.model.ThreeLetterLanguageCode value)
        Convert three letter language response entity.
        Parameters:
        value - the value
        Returns:
        the response entity
      • convertTwoLetterCountry

        @GetMapping(path="/2country/{value}",
                    produces="text/plain")
        public org.springframework.http.ResponseEntity<String> convertTwoLetterCountry​(@PathVariable("value")
                                                                                       org.bremersee.common.model.TwoLetterCountryCode value)
        Convert two letter country response entity.
        Parameters:
        value - the value
        Returns:
        the response entity
      • convertTwoLetterLanguage

        @GetMapping(path="/2language/{value}",
                    produces="text/plain")
        public org.springframework.http.ResponseEntity<String> convertTwoLetterLanguage​(@PathVariable("value")
                                                                                        org.bremersee.common.model.TwoLetterLanguageCode value)
        Convert two letter language response entity.
        Parameters:
        value - the value
        Returns:
        the response entity
      • convertTimeZone

        @GetMapping(path="/timezone",
                    produces="text/plain")
        public org.springframework.http.ResponseEntity<String> convertTimeZone​(@RequestParam("value")
                                                                               org.bremersee.common.model.TimeZoneId value)
        Convert time zone response entity.
        Parameters:
        value - the value
        Returns:
        the response entity