com.atlassian.gadgets.util
Class UriParameterConverter
java.lang.Object
com.atlassian.gadgets.util.UriParameterConverter
public class UriParameterConverter
- extends Object
Utility class that can be used to convert from String
s to other types. The main reason to use this instead
of just a valueOf() or other utility converter is that it will return IllegalUriParameterException
s in the
case of failure. These exceptions can be more explicity caught and turned into a proper response.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UriParameterConverter
public UriParameterConverter()
asLong
public static long asLong(String value)
throws IllegalUriParameterException
- Throws:
IllegalUriParameterException
Copyright © 2010 Atlassian. All Rights Reserved.