@Singleton public class LocaleProvider extends Object implements HeaderDelegateProvider<Locale>
Locale header delegate provider.| Constructor and Description |
|---|
LocaleProvider() |
| Modifier and Type | Method and Description |
|---|---|
Locale |
fromString(String header) |
boolean |
supports(Class<?> type)
Ascertain if the Provider supports a particular type.
|
String |
toString(Locale header) |
public boolean supports(Class<?> type)
HeaderDelegateProvidersupports in interface HeaderDelegateProvider<Locale>type - the type that is to be supported.public String toString(Locale header)
toString in interface javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<Locale>Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.