public class GitLabApiForm
extends javax.ws.rs.core.Form
| Constructor and Description |
|---|
GitLabApiForm() |
GitLabApiForm(int page,
int perPage)
Create a GitLabApiForm instance with the "page", and "per_page" parameters preset.
|
GitLabApiForm(javax.ws.rs.core.MultivaluedHashMap<String,String> map) |
| Modifier and Type | Method and Description |
|---|---|
GitLabApiForm |
withParam(List<Variable> variables)
Fluent method for adding a List<Variable> type query and form parameters to a get(), post(), or put() call.
|
GitLabApiForm |
withParam(String name,
AccessLevel level)
Fluent method for adding AccessLevel query and form parameters to a get() or post() call.
|
GitLabApiForm |
withParam(String name,
AccessLevel level,
boolean required)
Fluent method for adding AccessLevel query and form parameters to a get() or post() call.
|
GitLabApiForm |
withParam(String name,
Date date)
Fluent method for adding Date query and form parameters to a get() or post() call.
|
GitLabApiForm |
withParam(String name,
Date date,
boolean required)
Fluent method for adding Date query and form parameters to a get() or post() call.
|
<T> GitLabApiForm |
withParam(String name,
List<T> values)
Fluent method for adding a List type query and form parameters to a get() or post() call.
|
<T> GitLabApiForm |
withParam(String name,
List<T> values,
boolean required)
Fluent method for adding a List type query and form parameters to a get() or post() call.
|
GitLabApiForm |
withParam(String name,
Map<String,?> variables,
boolean required)
Fluent method for adding an array of hash type query and form parameters to a get() or post() call.
|
GitLabApiForm |
withParam(String name,
Object value)
Fluent method for adding query and form parameters to a get() or post() call.
|
GitLabApiForm |
withParam(String name,
Object value,
boolean required)
Fluent method for adding query and form parameters to a get() or post() call.
|
public GitLabApiForm()
public GitLabApiForm(int page,
int perPage)
page - the value for the "page" parameterperPage - the value for the "per_page" parameterpublic GitLabApiForm withParam(String name, Object value) throws IllegalArgumentException
name - the name of the field/attribute to addvalue - the value of the field/attribute to addIllegalArgumentExceptionpublic GitLabApiForm withParam(String name, Date date) throws IllegalArgumentException
name - the name of the field/attribute to adddate - the value of the field/attribute to addIllegalArgumentExceptionpublic GitLabApiForm withParam(String name, Date date, boolean required) throws IllegalArgumentException
name - the name of the field/attribute to adddate - the value of the field/attribute to addrequired - the field is required flagIllegalArgumentException - if a required parameter is null or emptypublic GitLabApiForm withParam(String name, AccessLevel level) throws IllegalArgumentException
name - the name of the field/attribute to addlevel - the value of the field/attribute to addIllegalArgumentExceptionpublic GitLabApiForm withParam(String name, AccessLevel level, boolean required) throws IllegalArgumentException
name - the name of the field/attribute to addlevel - the value of the field/attribute to addrequired - the field is required flagIllegalArgumentException - if a required parameter is null or emptypublic <T> GitLabApiForm withParam(String name, List<T> values)
T - the type contained by the Listname - the name of the field/attribute to addvalues - a List containing the values of the field/attribute to addpublic <T> GitLabApiForm withParam(String name, List<T> values, boolean required) throws IllegalArgumentException
T - the type contained by the Listname - the name of the field/attribute to addvalues - a List containing the values of the field/attribute to addrequired - the field is required flagIllegalArgumentException - if a required parameter is null or emptypublic GitLabApiForm withParam(String name, Map<String,?> variables, boolean required) throws IllegalArgumentException
name - the name of the field/attribute to addvariables - a Map containing array of hashesrequired - the field is required flagIllegalArgumentException - if a required parameter is null or emptypublic GitLabApiForm withParam(String name, Object value, boolean required) throws IllegalArgumentException
name - the name of the field/attribute to addvalue - the value of the field/attribute to addrequired - the field is required flagIllegalArgumentException - if a required parameter is null or emptypublic GitLabApiForm withParam(List<Variable> variables)
variables - the List of Variable to addCopyright © 2019. All rights reserved.