public interface LocaleResolverContext
Contextual data used by a LocaleResolver
to resolve the request
locale.
LocaleResolver
Modifier and Type | Method and Description |
---|---|
List<Locale> |
getAcceptableLanguages()
Get a list of languages that are acceptable for the response according to the
Accept-Language HTTP header sent by the client. |
javax.ws.rs.core.Configuration |
getConfiguration()
Returns the application's configuration.
|
javax.ws.rs.core.Cookie |
getCookie(String name)
Returns the cookie with the given name.
|
String |
getHeaderString(String name)
Get the request header as a single string value.
|
javax.ws.rs.core.Request |
getRequest()
Get the JAX-RS
Request instance. |
javax.ws.rs.core.UriInfo |
getUriInfo()
Get request URI information.
|
javax.ws.rs.core.Configuration getConfiguration()
Configuration
List<Locale> getAcceptableLanguages()
Accept-Language
HTTP header sent by the client.Locale
javax.ws.rs.core.Request getRequest()
Request
instance.Request
instance.Request
javax.ws.rs.core.UriInfo getUriInfo()
UriInfo
javax.ws.rs.core.Cookie getCookie(String name)
name
- the name of the cookienull
if no cookie with this name existsCookie
String getHeaderString(String name)
name
- the name of the request headernull
is returned. If the request header is present more than once then the values
of joined together and separated by a ',' character.Copyright © 2018 Ivar Grimstad. All rights reserved.