public interface ODataContextLanguageExtractor
| Modifier and Type | Method and Description |
|---|---|
java.util.Locale |
extractFrom(ODataContext oDataContext,
java.lang.String headerName)
Get the Content/Accept Locale based on the given ODataContext
|
java.util.Optional<java.util.Locale> |
getAcceptLanguage(ODataContext oDataContext)
Get the Language based on the given ODataContext
|
java.util.Locale extractFrom(ODataContext oDataContext,
java.lang.String headerName)
oDataContext - The ODataContext to be used.headerName - The header name to use. For instance: "Content-Language" or "Accept-Language"java.util.Optional<java.util.Locale> getAcceptLanguage(ODataContext oDataContext)
oDataContext - The ODataContext to be used.Copyright © 2018 SAP SE. All Rights Reserved.