Class GXHTTPRequestBuilder
java.lang.Object
org.gcube.common.gxhttp.reference.GXHTTPRequestBuilder
Deprecated, for removal: This API element is subject to removal in a future version.
Builder for GXHTTP Requests.
- Author:
- Manuele Simi (ISTI CNR), Luca Frosini (ISTI-CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated, for removal: This API element is subject to removal in a future version.protected static final org.slf4j.LoggerDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Deprecated, for removal: This API element is subject to removal in a future version.Clears all the parameter except the address.connect()Deprecated, for removal: This API element is subject to removal in a future version.connectTimeout(int connectTimeout) Deprecated, for removal: This API element is subject to removal in a future version.Sets the connect timeout of the request.delete()Deprecated, for removal: This API element is subject to removal in a future version.Sends the DELETE request to the web application.Deprecated, for removal: This API element is subject to removal in a future version.Sets the identity user agent associated to the request.get()Deprecated, for removal: This API element is subject to removal in a future version.Sends the GET request to the web application.head()Deprecated, for removal: This API element is subject to removal in a future version.Sends the HEAD request to the web application.Deprecated, for removal: This API element is subject to removal in a future version.Add headers to the request.options()Deprecated, for removal: This API element is subject to removal in a future version.patch()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Adds s positional path parameter to the request.post()Deprecated, for removal: This API element is subject to removal in a future version.purge()Deprecated, for removal: This API element is subject to removal in a future version.Sends the PURGE request to the web application.put()Deprecated, for removal: This API element is subject to removal in a future version.queryParams(Map<String, String> parameters) Deprecated, for removal: This API element is subject to removal in a future version.Sets the query parameters for the request.readTimeout(int readTimeout) Deprecated, for removal: This API element is subject to removal in a future version.Sets the read timeout of the request.trace()Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
logger
protected static final org.slf4j.Logger loggerDeprecated, for removal: This API element is subject to removal in a future version. -
connection
Deprecated, for removal: This API element is subject to removal in a future version. -
UUID_REGEX
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
GXHTTPRequestBuilder
public GXHTTPRequestBuilder()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Sets the identity user agent associated to the request.- Parameters:
agent-- Returns:
- the request
-
path
Deprecated, for removal: This API element is subject to removal in a future version.Adds s positional path parameter to the request.- Parameters:
path-- Returns:
- the request
- Throws:
UnsupportedEncodingException
-
queryParams
public GXHTTPRequestBuilder queryParams(Map<String, String> parameters) throws UnsupportedEncodingExceptionDeprecated, for removal: This API element is subject to removal in a future version.Sets the query parameters for the request.- Parameters:
parameters- the parameters that go in the URL after the address and the path params.- Returns:
- the request
- Throws:
UnsupportedEncodingException
-
header
Deprecated, for removal: This API element is subject to removal in a future version.Add headers to the request.- Parameters:
name-value-
-
connectTimeout
Deprecated, for removal: This API element is subject to removal in a future version.Sets the connect timeout of the request.- Parameters:
connectTimeout- the timeout in milliseconds;0means infinite- Returns:
- the request
-
readTimeout
Deprecated, for removal: This API element is subject to removal in a future version.Sets the read timeout of the request.- Parameters:
readTimeout- the timeout in milliseconds;0means infinite- Returns:
- the request
-
put
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
post
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
get
Deprecated, for removal: This API element is subject to removal in a future version.Sends the GET request to the web application.- Returns:
- the response
- Throws:
Exception
-
delete
Deprecated, for removal: This API element is subject to removal in a future version.Sends the DELETE request to the web application.- Returns:
- the response
- Throws:
Exception
-
purge
Deprecated, for removal: This API element is subject to removal in a future version.Sends the PURGE request to the web application.- Returns:
- the response
- Throws:
Exception
-
head
Deprecated, for removal: This API element is subject to removal in a future version.Sends the HEAD request to the web application.- Returns:
- the response
- Throws:
Exception
-
clear
public void clear()Deprecated, for removal: This API element is subject to removal in a future version.Clears all the parameter except the address. -
trace
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
patch
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
options
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
connect
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
GXRequest, which returns aGXResponse