public class GitlabHTTPRequestor extends Object
| Constructor and Description |
|---|
GitlabHTTPRequestor(GitlabAPI root) |
| Modifier and Type | Method and Description |
|---|---|
GitlabHTTPRequestor |
method(String method)
Sets the HTTP Request method for the request.
|
<T> T |
to(String tailAPIUrl,
Class<T> type) |
<T> T |
to(String tailAPIUrl,
Class<T> type,
T instance)
Opens the HTTP(S) connection, submits any data and parses the response.
|
<T> T |
to(String tailAPIUrl,
T instance) |
GitlabHTTPRequestor |
with(String key,
Object value)
Sets the HTTP Form Post parameters for the request
Has a fluent api for method chaining
|
public GitlabHTTPRequestor(GitlabAPI root)
public GitlabHTTPRequestor method(String method)
method - The HTTP methodpublic GitlabHTTPRequestor with(String key, Object value)
key - value - public <T> T to(String tailAPIUrl, T instance) throws IOException
IOExceptionpublic <T> T to(String tailAPIUrl, Class<T> type) throws IOException
IOExceptionpublic <T> T to(String tailAPIUrl, Class<T> type, T instance) throws IOException
tailAPIUrl - The url to open a connection to (after the host and namespace)type - The type of the response to be deserialized frominstance - The instance to update from the responseIOExceptionCopyright © 2013. All Rights Reserved.