public class URLQuery extends Object
Constructor and Description |
---|
URLQuery(String uri)
Constructor
|
URLQuery(URI uri)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBoolean(String name,
boolean defaultValue)
Get a parameter value as a boolean
|
Integer |
getInteger(String name,
Integer defaultValue)
Get a parameter value as an Integer
|
Long |
getLong(String name,
Long defaultValue)
Get a parameter value as a Long
|
Map<String,String> |
getParams()
Get a map of all the params in the URL
|
String |
getString(String name,
String defaultValue)
Get a parameter value as a string
|
public URLQuery(String uri) throws URISyntaxException
uri
- a URI stringURISyntaxException
- if the URL is invalidpublic URLQuery(URI uri)
uri
- a URI objectpublic String getString(String name, String defaultValue)
name
- the parameter namedefaultValue
- the default value if not givenpublic boolean getBoolean(String name, boolean defaultValue)
name
- the parameter namedefaultValue
- the default value if not givenpublic Integer getInteger(String name, Integer defaultValue)
name
- the parameter namedefaultValue
- the default value if not givenpublic Long getLong(String name, Long defaultValue)
name
- the parameter namedefaultValue
- the default value if not givenThis documentation was released into the public domain.