org.jboss.resteasy.plugins.delegates
public class LocaleDelegate extends Object implements RuntimeDelegate.HeaderDelegate<Locale>
Constructor and Description |
---|
LocaleDelegate() |
public Locale fromString(String value) throws IllegalArgumentException
RuntimeDelegate.HeaderDelegate
T
.fromString
in interface RuntimeDelegate.HeaderDelegate<Locale>
value
- the string valueT
IllegalArgumentException
- if the supplied string cannot be
parsed or is nullpublic String toString(Locale value)
RuntimeDelegate.HeaderDelegate
toString
in interface RuntimeDelegate.HeaderDelegate<Locale>
value
- the value of type T
Copyright © 2014. All Rights Reserved.