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,
GitlabAccessLevel value)
Conditionally append a parameter to the query
if the value of the parameter is not null
|
<T> Query |
appendIf(String name,
T 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 <T> Query appendIf(String name, T 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 © 2019. All rights reserved.