Class TestConfiguration.ConverterController
- java.lang.Object
-
- org.bremersee.converter.integration.servlet.app.TestConfiguration.ConverterController
-
- Enclosing class:
- TestConfiguration
@RestController public static class TestConfiguration.ConverterController extends Object
The converter controller.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description ConverterController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<String>
convertJavaLocale(org.bremersee.common.model.JavaLocale javaLocale)
Convert java locale response entity.org.springframework.http.ResponseEntity<String>
convertLocale(Locale locale)
Convert locale response entity.org.springframework.http.ResponseEntity<String>
convertMongoSearchLanguage(org.bremersee.common.model.MongoSearchLanguage value)
Convert mongo search language response entity.org.springframework.http.ResponseEntity<String>
convertThreeLetterCountry(org.bremersee.common.model.ThreeLetterCountryCode value)
Convert three letter country response entity.org.springframework.http.ResponseEntity<String>
convertThreeLetterLanguage(org.bremersee.common.model.ThreeLetterLanguageCode value)
Convert three letter language response entity.org.springframework.http.ResponseEntity<String>
convertTimeZone(org.bremersee.common.model.TimeZoneId value)
Convert time zone response entity.org.springframework.http.ResponseEntity<String>
convertTwoLetterCountry(org.bremersee.common.model.TwoLetterCountryCode value)
Convert two letter country response entity.org.springframework.http.ResponseEntity<String>
convertTwoLetterLanguage(org.bremersee.common.model.TwoLetterLanguageCode value)
Convert two letter language response entity.
-
-
-
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
-
-