Interface GXHTTP<BODY,RESPONSE>
- Type Parameters:
BODY- the type of the body requestRESPONSE- the type of the response
- All Known Implementing Classes:
GXHTTPStreamRequest,GXHTTPStringRequest
public interface GXHTTP<BODY,RESPONSE>
HTTP methods for requests.
- Author:
- Manuele Simi (ISTI-CNR), Luca Frosini (ISTI-CNR)
-
Method Summary
Modifier and TypeMethodDescriptionconnect()Sends the CONNECT request to the web application with no body.delete()Sends the DELETE request to the web application.get()Sends the GET request to the web application.head()Sends the HEAD request to the web application.options()Sends the OPTIONS request to the web application with no body.patch()Sends the PATCH request to the web application with no body.Sends the PATCH request to the web application.post()Sends the POST request to the web application with no body.Sends the POST request to the web application.purge()Sends the PURGE request to the web application.put()Sends the PUT request to the web application with no body.Sends the PUT request to the web application.trace()Sends the TRACE request to the web application with no body.
-
Method Details
-
put
Sends the PUT request to the web application.- Parameters:
body- the body of the request- Returns:
- the response
- Throws:
Exception- if an error occurs
-
put
Sends the PUT request to the web application with no body.- Returns:
- the response
- Throws:
Exception- if an error occurs
-
delete
Sends the DELETE request to the web application.- Returns:
- the response
- Throws:
Exception- if an error occurs
-
purge
Sends the PURGE request to the web application.- Returns:
- the response
- Throws:
Exception- if an error occurs
-
head
Sends the HEAD request to the web application.- Returns:
- the response
- Throws:
Exception- if an error occurs
-
get
Sends the GET request to the web application.- Returns:
- the response
- Throws:
Exception- if an error occurs
-
post
Sends the POST request to the web application.- Parameters:
body- the body of the request- Returns:
- the response
- Throws:
Exception- if an error occurs
-
post
Sends the POST request to the web application with no body.- Returns:
- the response
- Throws:
Exception- if an error occurs
-
trace
Sends the TRACE request to the web application with no body.- Returns:
- the response
- Throws:
Exception- if an error occurs
-
patch
Sends the PATCH request to the web application.- Parameters:
body- the body of the request- Returns:
- the response
- Throws:
Exception- if an error occurs
-
patch
Sends the PATCH request to the web application with no body.- Returns:
- the response
- Throws:
Exception- if an error occurs
-
options
Sends the OPTIONS request to the web application with no body.- Returns:
- the response
- Throws:
Exception- if an error occurs
-
connect
Sends the CONNECT request to the web application with no body.- Returns:
- the response
- Throws:
Exception- if an error occurs
-