Class LocaleProvider
- java.lang.Object
-
- org.glassfish.jersey.message.internal.LocaleProvider
-
- All Implemented Interfaces:
RuntimeDelegate.HeaderDelegate<Locale>,HeaderDelegateProvider<Locale>
@Singleton public class LocaleProvider extends Object implements HeaderDelegateProvider<Locale>
Localeheader delegate provider.- Author:
- Paul Sandoz, Marek Potociar
-
-
Constructor Summary
Constructors Constructor Description LocaleProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalefromString(String header)booleansupports(Class<?> type)Ascertain if the Provider supports a particular type.StringtoString(Locale header)
-
-
-
Method Detail
-
supports
public boolean supports(Class<?> type)
Description copied from interface:HeaderDelegateProviderAscertain if the Provider supports a particular type.- Specified by:
supportsin interfaceHeaderDelegateProvider<Locale>- Parameters:
type- the type that is to be supported.- Returns:
- true if the type is supported, otherwise false.
-
toString
public String toString(Locale header)
- Specified by:
toStringin interfaceRuntimeDelegate.HeaderDelegate<Locale>
-
fromString
public Locale fromString(String header)
- Specified by:
fromStringin interfaceRuntimeDelegate.HeaderDelegate<Locale>
-
-