public class Query extends Object
| Constructor and Description |
|---|
Query() |
| Modifier and Type | Method and Description |
|---|---|
Query |
append(String name,
String value)
Appends a parameter to the query
|
Query |
appendIf(String name,
Boolean value)
Conditionally append a parameter to the query
if the value of the parameter is not null
|
Query |
appendIf(String name,
GitlabAccessLevel value)
Conditionally append a parameter to the query
if the value of the parameter is not null
|
Query |
appendIf(String name,
Integer value)
Conditionally append a parameter to the query
if the value of the parameter is not null
|
Query |
appendIf(String name,
String value)
Conditionally append a parameter to the query
if the value of the parameter is not null
|
boolean |
mergeWith(Query query) |
String |
toString()
Returns a Query suitable for appending
to a URI
|
public Query append(String name, String value) throws UnsupportedEncodingException
name - Parameter namevalue - Parameter valueUnsupportedEncodingException - If the provided value cannot be URL Encodedpublic Query appendIf(String name, String value) throws UnsupportedEncodingException
name - Parameter namevalue - Parameter valueUnsupportedEncodingException - If the provided value cannot be URL Encodedpublic Query appendIf(String name, Integer value) throws UnsupportedEncodingException
name - Parameter namevalue - Parameter valueUnsupportedEncodingException - If the provided value cannot be URL Encodedpublic Query appendIf(String name, Boolean value) throws UnsupportedEncodingException
name - Parameter namevalue - Parameter valueUnsupportedEncodingException - If the provided value cannot be URL Encodedpublic Query appendIf(String name, GitlabAccessLevel value) throws UnsupportedEncodingException
name - Parameter namevalue - Parameter valueUnsupportedEncodingException - If the provided value cannot be URL Encodedpublic boolean mergeWith(Query query)
Copyright © 2017. All Rights Reserved.