BODY - the type of the body requestRESPONSE - the type of the responsepublic interface GXHTTP<BODY,RESPONSE>
| Modifier and Type | Method and Description |
|---|---|
RESPONSE |
connect()
Sends the CONNECT request to the web application with no body.
|
RESPONSE |
delete()
Sends the DELETE request to the web application.
|
RESPONSE |
get()
Sends the GET request to the web application.
|
RESPONSE |
head()
Sends the HEAD request to the web application.
|
void |
isExternalCall(boolean ext)
States if the service being called in an external service (not gCube).
|
RESPONSE |
options()
Sends the OPTIONS request to the web application with no body.
|
RESPONSE |
patch()
Sends the PATCH request to the web application with no body.
|
RESPONSE |
post()
Sends the POST request to the web application with no body.
|
RESPONSE |
post(BODY body)
Sends the POST request to the web application.
|
RESPONSE |
put()
Sends the PUT request to the web application with no body.
|
RESPONSE |
put(BODY body)
Sends the PUT request to the web application.
|
void |
setSecurityToken(String token)
Overrides the default security token.
|
RESPONSE |
trace()
Sends the TRACE request to the web application with no body.
|
RESPONSE put(BODY body) throws Exception
body - the body of the requestExceptionRESPONSE put() throws Exception
ExceptionRESPONSE delete() throws Exception
ExceptionRESPONSE head() throws Exception
ExceptionRESPONSE get() throws Exception
ExceptionRESPONSE post(BODY body) throws Exception
body - the body of the requestExceptionRESPONSE post() throws Exception
ExceptionRESPONSE trace() throws Exception
ExceptionRESPONSE patch() throws Exception
ExceptionRESPONSE options() throws Exception
ExceptionRESPONSE connect() throws Exception
Exceptionvoid setSecurityToken(String token)
token - the new tokenvoid isExternalCall(boolean ext)
ext - true if external, false otherwiseCopyright © 2020. All Rights Reserved.