|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.message.internal.LocaleProvider
@Singleton public class LocaleProvider
Locale header delegate provider.
| Constructor Summary | |
|---|---|
LocaleProvider()
|
|
| Method Summary | |
|---|---|
Locale |
fromString(String header)
Parse the supplied value and create an instance of T. |
boolean |
supports(Class<?> type)
Ascertain if the Provider supports a particular type. |
String |
toString(Locale header)
Convert the supplied value to a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocaleProvider()
| Method Detail |
|---|
public boolean supports(Class<?> type)
HeaderDelegateProvider
supports in interface HeaderDelegateProvider<Locale>type - the type that is to be supported.
public String toString(Locale header)
RuntimeDelegate.HeaderDelegate
toString in interface RuntimeDelegate.HeaderDelegate<Locale>header - the value of type T.
public Locale fromString(String header)
RuntimeDelegate.HeaderDelegateT.
fromString in interface RuntimeDelegate.HeaderDelegate<Locale>header - the string value.
T.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||