GXRequest |
GXRequest.connectTimeout(int connectTimeout) |
Sets the connect timeout of this request.
|
GXRequest |
GXRequest.external(boolean external) |
Declares whether the call goes to a service outside gCube: an external call carries no
credential of the current session.
|
GXRequest |
GXRequest.from(String agent) |
Sets the agent sent as User-Agent.
|
GXRequest |
GXRequest.header(String name,
String value) |
Sets a header.
|
static GXRequest |
GXRequest.newRequest(String address) |
Creates a request.
|
GXRequest |
GXRequest.path(String pathPart) |
Appends a part to the path; each segment is encoded.
|
GXRequest |
GXRequest.pathParams(String pathParameters) |
Sets path parameters, appended as they are after the path (e.g.
|
GXRequest |
GXRequest.queryParams(Map<String,String> parameters) |
Sets the query parameters; names and values are encoded.
|
GXRequest |
GXRequest.queryString(String queryParameters) |
Sets the query string as it is.
|
GXRequest |
GXRequest.readTimeout(int readTimeout) |
Sets the read timeout of this request: the time allowed, once connected, between two reads
from the server, the wait for the response status and headers included.
|
GXRequest |
GXRequest.withBody(InputStream body) |
Sets the body as a stream, read while the request is sent.
|
GXRequest |
GXRequest.withBody(String body) |
Sets the body as text, sent in UTF-8.
|