org.apache.clerezza.triaxrs.headerDelegate
Class LocaleProvider
java.lang.Object
org.apache.clerezza.triaxrs.headerDelegate.LocaleProvider
- All Implemented Interfaces:
- javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<Locale>
public class LocaleProvider
- extends Object
- implements javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<Locale>
Converts a RFC 1766 language tag into java.util.Locale Object and vice versa.
- Author:
- mir
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocaleProvider
public LocaleProvider()
fromString
public Locale fromString(String header)
throws IllegalArgumentException
- Specified by:
fromString in interface javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<Locale>
- Throws:
IllegalArgumentException
toString
public String toString(Locale locale)
- Specified by:
toString in interface javax.ws.rs.ext.RuntimeDelegate.HeaderDelegate<Locale>
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.