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-LanguageHTTP header sent by the client.jakarta.ws.rs.core.ConfigurationReturns the application's configuration.jakarta.ws.rs.core.CookieReturns the cookie with the given name.getHeaderString(String name) Get the request header as a single string value.jakarta.ws.rs.core.RequestGet the Jakarta RESTful Web ServicesRequestinstance.jakarta.ws.rs.core.UriInfoGet 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-LanguageHTTP 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 ServicesRequestinstance.- Returns:
- the Jakarta RESTful Web Services
Requestinstance. - 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
nullif 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
nullis returned. If the request header is present more than once then the values of joined together and separated by a ',' character.
-