Package org.gcube.common.gxhttp.request
Class GXHTTPStreamRequest
java.lang.Object
org.gcube.common.gxhttp.request.GXHTTPStreamRequest
- All Implemented Interfaces:
GXHTTP<InputStream,HttpURLConnection>
@Deprecated(since="1.1.0",
forRemoval=true)
public class GXHTTPStreamRequest
extends Object
implements GXHTTP<InputStream,HttpURLConnection>
Deprecated, for removal: This API element is subject to removal in a future version.
A context-aware request to a web application.
It supports sending streams through Put/Post requests.
- Author:
- Manuele Simi (ISTI CNR), Luca Frosini (ISTI-CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GXHTTPRequestBuilderDeprecated, 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. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Deprecated, for removal: This API element is subject to removal in a future version.Clear up the request.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.Deprecated, for removal: This API element is subject to removal in a future version.Sets the User-Agent for the requestget()Deprecated, for removal: This API element is subject to removal in a future version.head()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 a header to the requeststatic GXHTTPStreamRequestnewRequest(String address) Deprecated, for removal: This API element is subject to removal in a future version.Creates a new 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.patch(InputStream body) Deprecated, for removal: This API element is subject to removal in a future version.Sends the PATCH request to the web application.Deprecated, for removal: This API element is subject to removal in a future version.Adds a path to the request URLpost()Deprecated, for removal: This API element is subject to removal in a future version.post(InputStream body) Deprecated, for removal: This API element is subject to removal in a future version.Sends the POST request to the web application.purge()Deprecated, for removal: This API element is subject to removal in a future version.put()Deprecated, for removal: This API element is subject to removal in a future version.put(InputStream body) Deprecated, for removal: This API element is subject to removal in a future version.Sends the PUT request to the web application.queryParams(Map<String, String> queryParams) Deprecated, for removal: This API element is subject to removal in a future version.Adds query parameters to the requestreadTimeout(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. -
builder
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
newRequest
Deprecated, for removal: This API element is subject to removal in a future version.Creates a new request.- Parameters:
address- the address of the web app to call- Returns:
- the request
-
put
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:GXHTTPSends the PUT request to the web application.- Specified by:
putin interfaceGXHTTP<InputStream,HttpURLConnection> - Parameters:
body- the body of the request- Returns:
- the response
- Throws:
Exception- if an error occurs
-
post
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:GXHTTPSends the POST request to the web application.- Specified by:
postin interfaceGXHTTP<InputStream,HttpURLConnection> - Parameters:
body- the body of the request- Returns:
- the response
- Throws:
Exception- if an error occurs
-
patch
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:GXHTTPSends the PATCH request to the web application.- Specified by:
patchin interfaceGXHTTP<InputStream,HttpURLConnection> - Parameters:
body- the body of the request- Returns:
- the response
- Throws:
Exception- if an error occurs
-
from
Deprecated, for removal: This API element is subject to removal in a future version.Sets the User-Agent for the request- Parameters:
agent- the agent- Returns:
- the request
-
path
Deprecated, for removal: This API element is subject to removal in a future version.Adds a path to the request URL- Parameters:
path- the path to add- Returns:
- the request
- Throws:
UnsupportedEncodingException- if the encoding is not supported
-
header
Deprecated, for removal: This API element is subject to removal in a future version.Adds a header to the request- Parameters:
name- the name of the headervalue- the value of the header- Returns:
- the request
-
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
-
queryParams
public GXHTTPStreamRequest queryParams(Map<String, String> queryParams) throws UnsupportedEncodingExceptionDeprecated, for removal: This API element is subject to removal in a future version.Adds query parameters to the request- Parameters:
queryParams- the query parameters- Returns:
- the request
- Throws:
UnsupportedEncodingException- if the encoding is not supported
-
put
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
delete
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
purge
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
head
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.- Throws:
Exception
-
post
Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
Exception
-
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
-
clear
public void clear()Deprecated, for removal: This API element is subject to removal in a future version.Clear up the request.
-
GXRequest, which returns aGXResponse