com.atlassian.gadgets.util
Class UriParameterConverter

java.lang.Object
  extended by com.atlassian.gadgets.util.UriParameterConverter

public class UriParameterConverter
extends Object

Utility class that can be used to convert from Strings to other types. The main reason to use this instead of just a valueOf() or other utility converter is that it will return IllegalUriParameterExceptions in the case of failure. These exceptions can be more explicity caught and turned into a proper response.


Constructor Summary
UriParameterConverter()
           
 
Method Summary
static long asLong(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UriParameterConverter

public UriParameterConverter()
Method Detail

asLong

public static long asLong(String value)
                   throws IllegalUriParameterException
Throws:
IllegalUriParameterException


Copyright © 2010 Atlassian. All Rights Reserved.