A C D E F G H I L N O P Q R S T U V W 
All Classes All Packages

A

addBody(String) - Method in class org.gcube.common.gxhttp.reference.GXConnection
The body of the request.
addBodyAsStream(InputStream) - Method in class org.gcube.common.gxhttp.reference.GXConnection
 
addPath(String) - Method in class org.gcube.common.gxhttp.reference.GXConnection
 
address - Variable in class org.gcube.common.gxhttp.reference.GXConnection
 
agent - Variable in class org.gcube.common.gxhttp.reference.GXConnection
 
APPLICATION_JSON_CHARSET_UTF_8 - Static variable in class org.gcube.common.gxhttp.reference.GXConnection
 
APPLICATION_JSON_CHARSET_UTF_8 - Static variable in class org.gcube.common.gxhttp.request.GXRequest
The application/json;charset=UTF-8 content type.

C

clear() - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
Clears all the parameter except the address.
clear() - Method in class org.gcube.common.gxhttp.request.GXRequest
Clears path, path parameters, query parameters and body, so that the request can be reused with the same address, headers and timeouts.
close() - Method in class org.gcube.common.gxhttp.request.GXResponse
Closes the body, giving the connection back.
connect() - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
Sends the CONNECT request to the web application with no body.
connect() - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
 
CONNECT - org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD
 
CONNECT_TIMEOUT_PROPERTY - Static variable in class org.gcube.common.gxhttp.request.GXRequest
System property holding the default connect timeout, in milliseconds (0 means infinite).
connection - Variable in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
 
connectTimeout(int) - Method in class org.gcube.common.gxhttp.request.GXRequest
Sets the connect timeout of this request.
ContentUtils - Class in org.gcube.common.gxhttp.util
Manipulation of a response's content.
ContentUtils() - Constructor for class org.gcube.common.gxhttp.util.ContentUtils
 

D

DEFAULT_CONNECT_TIMEOUT - Static variable in class org.gcube.common.gxhttp.request.GXRequest
Connect timeout used when "gxhttp.connectTimeout" is not set, in milliseconds.
DEFAULT_READ_TIMEOUT - Static variable in class org.gcube.common.gxhttp.request.GXRequest
Read timeout used when "gxhttp.readTimeout" is not set, in milliseconds.
delete() - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
Sends the DELETE request to the web application.
delete() - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
Sends the DELETE request to the web application.
delete() - Method in class org.gcube.common.gxhttp.request.GXRequest
Sends a DELETE request.
DELETE - org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD
 

E

external(boolean) - Method in class org.gcube.common.gxhttp.request.GXRequest
Declares whether the call goes to a service outside gCube: an external call carries no credential of the current session.

F

from(String) - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
Sets the identity user agent associated to the request.
from(String) - Method in class org.gcube.common.gxhttp.request.GXHTTPStreamRequest
 
from(String) - Method in class org.gcube.common.gxhttp.request.GXHTTPStringRequest
 
from(String) - Method in class org.gcube.common.gxhttp.request.GXRequest
Sets the agent sent as User-Agent.

G

get() - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
Sends the GET request to the web application.
get() - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
Sends the GET request to the web application.
get() - Method in class org.gcube.common.gxhttp.request.GXRequest
Sends a GET request.
GET - org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD
 
getBody() - Method in class org.gcube.common.gxhttp.request.GXResponse
 
getBodyAsString() - Method in class org.gcube.common.gxhttp.request.GXResponse
Reads the whole body as UTF-8 text and closes it.
getDefaultConnectTimeout() - Static method in class org.gcube.common.gxhttp.request.GXRequest
Gets the default connect timeout: "gxhttp.connectTimeout" when set, otherwise 30000.
getDefaultReadTimeout() - Static method in class org.gcube.common.gxhttp.request.GXRequest
Gets the default read timeout: "gxhttp.readTimeout" when set, otherwise 300000.
getHeader(String) - Method in class org.gcube.common.gxhttp.request.GXResponse
 
getHeaders() - Method in class org.gcube.common.gxhttp.request.GXResponse
 
getStatus() - Method in class org.gcube.common.gxhttp.request.GXResponse
 
getURI() - Method in class org.gcube.common.gxhttp.request.GXRequest
 
getURI() - Method in class org.gcube.common.gxhttp.request.GXResponse
 
GXConnection - Class in org.gcube.common.gxhttp.reference
A remote connection for a GXHTTPStringRequest.
GXConnection(String) - Constructor for class org.gcube.common.gxhttp.reference.GXConnection
 
GXConnection.HTTPMETHOD - Enum in org.gcube.common.gxhttp.reference
 
GXHTTP<BODY,​RESPONSE> - Interface in org.gcube.common.gxhttp.reference
HTTP methods for requests.
GXHTTPRequestBuilder - Class in org.gcube.common.gxhttp.reference
Builder for GXHTTP Requests.
GXHTTPRequestBuilder() - Constructor for class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
 
GXHTTPStreamRequest - Class in org.gcube.common.gxhttp.request
A context-aware request to a web application.
GXHTTPStringRequest - Class in org.gcube.common.gxhttp.request
A context-aware request to a web application.
GXRequest - Class in org.gcube.common.gxhttp.request
An HTTP request to a remote service, sent with HttpURLConnection.
GXResponse - Class in org.gcube.common.gxhttp.request
The response to a GXRequest: status, headers and body.
GXResponseException - Exception in org.gcube.common.gxhttp.reference
Thrown when a request was handed to the server but no response status was received (e.g.
GXResponseException(String, Throwable) - Constructor for exception org.gcube.common.gxhttp.reference.GXResponseException
Creates the exception.

H

head() - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
Sends the HEAD request to the web application.
head() - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
Sends the HEAD request to the web application.
head() - Method in class org.gcube.common.gxhttp.request.GXRequest
Sends a HEAD request.
HEAD - org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD
 
header(String, String) - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
Add headers to the request.
header(String, String) - Method in class org.gcube.common.gxhttp.request.GXHTTPStreamRequest
 
header(String, String) - Method in class org.gcube.common.gxhttp.request.GXHTTPStringRequest
 
header(String, String) - Method in class org.gcube.common.gxhttp.request.GXRequest
Sets a header.

I

isExtCall() - Method in class org.gcube.common.gxhttp.reference.GXConnection
 
isExternalCall(boolean) - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
States if the service being called in an external service (not gCube).
isExternalCall(boolean) - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
 
isSuccessful() - Method in class org.gcube.common.gxhttp.request.GXResponse
 

L

logger - Static variable in class org.gcube.common.gxhttp.reference.GXConnection
 
logger - Static variable in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
 

N

newRequest(String) - Static method in class org.gcube.common.gxhttp.request.GXHTTPStreamRequest
Creates a new request.
newRequest(String) - Static method in class org.gcube.common.gxhttp.request.GXHTTPStringRequest
Creates a new request.
newRequest(String) - Static method in class org.gcube.common.gxhttp.request.GXRequest
Creates a request.

O

options() - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
Sends the OPTIONS request to the web application with no body.
options() - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
 
options() - Method in class org.gcube.common.gxhttp.request.GXRequest
Sends an OPTIONS request.
OPTIONS - org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD
 
org.gcube.common.gxhttp.reference - package org.gcube.common.gxhttp.reference
GXHTTP core.
org.gcube.common.gxhttp.request - package org.gcube.common.gxhttp.request
GXHTTP requests.
org.gcube.common.gxhttp.util - package org.gcube.common.gxhttp.util
Utilities.

P

PARAM_EQUALS - Static variable in class org.gcube.common.gxhttp.reference.GXConnection
 
PARAM_EQUALS - Static variable in class org.gcube.common.gxhttp.request.GXRequest
The parameter equals.
PARAM_SEPARATOR - Static variable in class org.gcube.common.gxhttp.reference.GXConnection
 
PARAM_SEPARATOR - Static variable in class org.gcube.common.gxhttp.request.GXRequest
The parameter separator.
PARAM_STARTER - Static variable in class org.gcube.common.gxhttp.reference.GXConnection
 
PARAM_STARTER - Static variable in class org.gcube.common.gxhttp.request.GXRequest
The parameter starter.
patch() - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
Sends the PATCH request to the web application with no body.
patch() - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
 
patch() - Method in class org.gcube.common.gxhttp.request.GXRequest
Not available: HttpURLConnection refuses the PATCH method.
PATCH - org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD
 
path - Variable in class org.gcube.common.gxhttp.reference.GXConnection
 
path(String) - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
Adds s positional path parameter to the request.
path(String) - Method in class org.gcube.common.gxhttp.request.GXHTTPStreamRequest
 
path(String) - Method in class org.gcube.common.gxhttp.request.GXHTTPStringRequest
 
path(String) - Method in class org.gcube.common.gxhttp.request.GXRequest
Appends a part to the path; each segment is encoded.
PATH_SEPARATOR - Static variable in class org.gcube.common.gxhttp.reference.GXConnection
 
PATH_SEPARATOR - Static variable in class org.gcube.common.gxhttp.request.GXRequest
The path separator.
pathParams(String) - Method in class org.gcube.common.gxhttp.request.GXRequest
Sets path parameters, appended as they are after the path (e.g.
post() - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
Sends the POST request to the web application with no body.
post() - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
 
post() - Method in class org.gcube.common.gxhttp.request.GXRequest
Sends a POST request, with the body if set.
post(BODY) - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
Sends the POST request to the web application.
post(InputStream) - Method in class org.gcube.common.gxhttp.request.GXHTTPStreamRequest
 
post(String) - Method in class org.gcube.common.gxhttp.request.GXHTTPStringRequest
 
POST - org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD
 
purge() - Method in class org.gcube.common.gxhttp.request.GXRequest
Not available: HttpURLConnection refuses the PURGE method.
put() - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
Sends the PUT request to the web application with no body.
put() - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
 
put() - Method in class org.gcube.common.gxhttp.request.GXRequest
Sends a PUT request, with the body if set.
put(BODY) - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
Sends the PUT request to the web application.
put(InputStream) - Method in class org.gcube.common.gxhttp.request.GXHTTPStreamRequest
 
put(String) - Method in class org.gcube.common.gxhttp.request.GXHTTPStringRequest
 
PUT - org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD
 

Q

queryParams(Map<String, String>) - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
Sets the query parameters for the request.
queryParams(Map<String, String>) - Method in class org.gcube.common.gxhttp.request.GXHTTPStreamRequest
 
queryParams(Map<String, String>) - Method in class org.gcube.common.gxhttp.request.GXHTTPStringRequest
 
queryParams(Map<String, String>) - Method in class org.gcube.common.gxhttp.request.GXRequest
Sets the query parameters; names and values are encoded.
queryString(String) - Method in class org.gcube.common.gxhttp.request.GXRequest
Sets the query string as it is.

R

READ_TIMEOUT_PROPERTY - Static variable in class org.gcube.common.gxhttp.request.GXRequest
System property holding the default read timeout, in milliseconds (0 means infinite).
readTimeout(int) - Method in class org.gcube.common.gxhttp.request.GXRequest
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.
reset() - Method in class org.gcube.common.gxhttp.reference.GXConnection
Resets the connection.

S

send(String) - Method in class org.gcube.common.gxhttp.request.GXRequest
Sends the request with the given method.
send(GXConnection.HTTPMETHOD) - Method in class org.gcube.common.gxhttp.reference.GXConnection
Sends the request with the given method
setAgent(String) - Method in class org.gcube.common.gxhttp.reference.GXConnection
 
setExtCall(boolean) - Method in class org.gcube.common.gxhttp.reference.GXConnection
 
setPathParameters(String) - Method in class org.gcube.common.gxhttp.reference.GXConnection
Sets the path parameters for the connection.
setProperty(String, String) - Method in class org.gcube.common.gxhttp.reference.GXConnection
Adds a property as header.
setQueryParameters(String) - Method in class org.gcube.common.gxhttp.reference.GXConnection
Sets the query parameters for the connection.
setSecurityToken(String) - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
Overrides the default security token.
setSecurityToken(String) - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
Overrides the default security token.

T

toByteArray(InputStream) - Static method in class org.gcube.common.gxhttp.util.ContentUtils
Gets the contents of an InputStream as a byte[].
toByteArray(Object) - Static method in class org.gcube.common.gxhttp.util.ContentUtils
Converts an object to an array of bytes
toObject(byte[]) - Method in class org.gcube.common.gxhttp.util.ContentUtils
Converts the array of bytes into an object.
toObject(InputStream, Class<T>) - Static method in class org.gcube.common.gxhttp.util.ContentUtils
 
toString() - Method in enum org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD
 
toString(byte[]) - Static method in class org.gcube.common.gxhttp.util.ContentUtils
 
trace() - Method in interface org.gcube.common.gxhttp.reference.GXHTTP
Sends the TRACE request to the web application with no body.
trace() - Method in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
 
trace() - Method in class org.gcube.common.gxhttp.request.GXRequest
Sends a TRACE request.
TRACE - org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD
 

U

UTF8 - Static variable in class org.gcube.common.gxhttp.reference.GXConnection
 
UTF8 - Static variable in class org.gcube.common.gxhttp.request.GXRequest
The UTF-8 charset.
UUID_REGEX - Static variable in class org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
 

V

valueOf(String) - Static method in enum org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.gcube.common.gxhttp.reference.GXConnection.HTTPMETHOD
Returns an array containing the constants of this enum type, in the order they are declared.

W

withBody(InputStream) - Method in class org.gcube.common.gxhttp.request.GXRequest
Sets the body as a stream, read while the request is sent.
withBody(String) - Method in class org.gcube.common.gxhttp.request.GXHTTPStringRequest
Sets the body of the request.
withBody(String) - Method in class org.gcube.common.gxhttp.request.GXRequest
Sets the body as text, sent in UTF-8.
A C D E F G H I L N O P Q R S T U V W 
All Classes All Packages