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