Package com.sodius.oslc.server.services
Class I18nService
- java.lang.Object
-
- com.sodius.oslc.server.services.I18nService
-
public class I18nService extends Object
Provides internationalization facilities.- Since:
- 1.3.0
-
-
Constructor Summary
Constructors Constructor Description I18nService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
getMessages()
Returns a JSON stream containing all translations contributed by extensions ofcom.sodius.oslc.server.i18n.messages
.
-
-
-
Method Detail
-
getMessages
public Response getMessages()
Returns a JSON stream containing all translations contributed by extensions ofcom.sodius.oslc.server.i18n.messages
. The language is determined by inspecting preferred locale on the servlet request and available translations on server side.- Returns:
- a JSON stream containing all translations.
-
-