public interface LocaleResolverContext
Contextual data used by a LocaleResolver
to resolve the request
locale.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet a list of languages that are acceptable for the response according to theAccept-Language
HTTP header sent by the client.jakarta.ws.rs.core.Configuration
Returns the application's configuration.jakarta.ws.rs.core.Cookie
Returns the cookie with the given name.getHeaderString
(String name) Get the request header as a single string value.jakarta.ws.rs.core.Request
Get the Jakarta RESTful Web ServicesRequest
instance.jakarta.ws.rs.core.UriInfo
Get request URI information.
-
Method Details
-
getConfiguration
jakarta.ws.rs.core.Configuration getConfiguration()Returns the application's configuration.- Returns:
- application's configuration.
- See Also:
-
getAcceptableLanguages
Get a list of languages that are acceptable for the response according to theAccept-Language
HTTP header sent by the client.- Returns:
- a read-only list of languages ordered by their q-value.
- See Also:
-
getRequest
jakarta.ws.rs.core.Request getRequest()Get the Jakarta RESTful Web ServicesRequest
instance.- Returns:
- the Jakarta RESTful Web Services
Request
instance. - See Also:
-
getUriInfo
jakarta.ws.rs.core.UriInfo getUriInfo()Get request URI information.- Returns:
- request URI information
- See Also:
-
getCookie
Returns the cookie with the given name.- Parameters:
name
- the name of the cookie- Returns:
- the cookie or
null
if no cookie with this name exists - See Also:
-
getHeaderString
Get the request header as a single string value.- Parameters:
name
- the name of the request header- Returns:
- the request header value. If the request header is not present then
null
is returned. If the request header is present more than once then the values of joined together and separated by a ',' character.
-