public class Query extends Object
| 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
|
String |
build()
Returns a Query suitable for appending
to a URI
|
static Query |
newQuery() |
public static final Query newQuery()
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 String build()
Copyright © 2018 Talanlabs. All rights reserved.