@Controller public class LanguageController extends Object
| Constructor and Description |
|---|
LanguageController(LanguageManager languageManager) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<Language> |
getLanguageByCode(String code)
Returns the
Language by language code. |
org.springframework.http.ResponseEntity<com.google.common.collect.ImmutableSet<Language>> |
getLanguages(String typedText)
Returns the
Languages starting with the typedText prefix. |
public LanguageController(LanguageManager languageManager)
@RequestMapping(value="/i18n/languages",
method=GET)
@ResponseBody
public org.springframework.http.ResponseEntity<com.google.common.collect.ImmutableSet<Language>> getLanguages(@RequestParam(required=false)
String typedText)
Returns the Languages starting with the typedText prefix. If typedText is empty, all languages are returned.
typedText - the language prefix@RequestMapping(value="/i18n/languages/{code}",
method=GET)
@ResponseBody
public org.springframework.http.ResponseEntity<Language> getLanguageByCode(@PathVariable
String code)
Returns the Language by language code.
code - the language code for which the language should be returnedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.