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)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RESPONSEconnect()Sends the CONNECT request to the web application with no body.RESPONSEdelete()Sends the DELETE request to the web application.RESPONSEget()Sends the GET request to the web application.RESPONSEhead()Sends the HEAD request to the web application.voidisExternalCall(boolean ext)States if the service being called in an external service (not gCube).RESPONSEoptions()Sends the OPTIONS request to the web application with no body.RESPONSEpatch()Sends the PATCH request to the web application with no body.RESPONSEpost()Sends the POST request to the web application with no body.RESPONSEpost(BODY body)Sends the POST request to the web application.RESPONSEput()Sends the PUT request to the web application with no body.RESPONSEput(BODY body)Sends the PUT request to the web application.voidsetSecurityToken(String token)Overrides the default security token.RESPONSEtrace()Sends the TRACE request to the web application with no body.
-
-
-
Method Detail
-
put
RESPONSE put(BODY body) throws Exception
Sends the PUT request to the web application.- Parameters:
body- the body of the request- Returns:
- the response
- Throws:
Exception
-
put
RESPONSE put() throws Exception
Sends the PUT request to the web application with no body.- Returns:
- the response
- Throws:
Exception
-
delete
RESPONSE delete() throws Exception
Sends the DELETE request to the web application.- Returns:
- the response
- Throws:
Exception
-
head
RESPONSE head() throws Exception
Sends the HEAD request to the web application.- Returns:
- the response
- Throws:
Exception
-
get
RESPONSE get() throws Exception
Sends the GET request to the web application.- Returns:
- the response
- Throws:
Exception
-
post
RESPONSE post(BODY body) throws Exception
Sends the POST request to the web application.- Parameters:
body- the body of the request- Returns:
- the response
- Throws:
Exception
-
post
RESPONSE post() throws Exception
Sends the POST request to the web application with no body.- Returns:
- the response
- Throws:
Exception
-
trace
RESPONSE trace() throws Exception
Sends the TRACE request to the web application with no body.- Returns:
- the response
- Throws:
Exception
-
patch
RESPONSE patch() throws Exception
Sends the PATCH request to the web application with no body.- Returns:
- the response
- Throws:
Exception
-
options
RESPONSE options() throws Exception
Sends the OPTIONS request to the web application with no body.- Returns:
- the response
- Throws:
Exception
-
connect
RESPONSE connect() throws Exception
Sends the CONNECT request to the web application with no body.- Returns:
- the response
- Throws:
Exception
-
setSecurityToken
void setSecurityToken(String token)
Overrides the default security token.- Parameters:
token- the new token
-
isExternalCall
void isExternalCall(boolean ext)
States if the service being called in an external service (not gCube).- Parameters:
ext- true if external, false otherwise
-
-