@Deprecated public class GXHTTPRequest extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Deprecated.
Clears all the parameter except the address.
|
GXInboundResponse |
connect()
Deprecated.
Sends the CONNECT request to the web application with no body.
|
GXInboundResponse |
delete()
Deprecated.
Sends the DELETE request to the web application.
|
GXHTTPRequest |
from(String agent)
Deprecated.
Sets the identity user agent associated to the request.
|
GXInboundResponse |
get()
Deprecated.
Sends the GET request to the web application.
|
GXInboundResponse |
head()
Deprecated.
Sends the HEAD request to the web application.
|
GXHTTPRequest |
header(String name,
String value)
Deprecated.
Add headers to the request.
|
void |
isExternalCall(boolean ext)
Deprecated.
States if the service being called in an external service (not gCube).
|
static GXHTTPRequest |
newRequest(String address)
Deprecated.
Creates a new request.
|
GXInboundResponse |
options()
Deprecated.
Sends the OPTIONS request to the web application with no body.
|
GXInboundResponse |
patch()
Deprecated.
Sends the PATCH request to the web application with no body.
|
GXHTTPRequest |
path(String path)
Deprecated.
Adds s positional path parameter to the request.
|
GXInboundResponse |
post()
Deprecated.
Sends the POST request to the web application with no body.
|
GXInboundResponse |
post(String body)
Deprecated.
Sends the POST request to the web application.
|
GXInboundResponse |
put()
Deprecated.
Sends the PUT request to the web application with no body.
|
GXInboundResponse |
put(String body)
Deprecated.
Sends the PUT request to the web application.
|
GXHTTPRequest |
queryParams(Map<String,String> parameters)
Deprecated.
Sets the query parameters for the request.
|
void |
setSecurityToken(String token)
Deprecated.
Overrides the default security token.
|
GXInboundResponse |
trace()
Deprecated.
Sends the TRACE request to the web application with no body.
|
GXHTTPRequest |
withBody(String body)
Deprecated.
Sets the body of the request.
|
public static GXHTTPRequest newRequest(String address)
address - the address of the web app to callpublic GXHTTPRequest from(String agent)
agent - public GXHTTPRequest path(String path) throws UnsupportedEncodingException
path - UnsupportedEncodingExceptionpublic GXHTTPRequest withBody(String body)
body - public GXHTTPRequest queryParams(Map<String,String> parameters) throws UnsupportedEncodingException
parameters - the parameters that go in the URL after the address and the
path params.UnsupportedEncodingExceptionpublic void setSecurityToken(String token)
token - public GXHTTPRequest header(String name, String value)
name - value - public GXInboundResponse get() throws Exception
Exceptionpublic GXInboundResponse delete() throws Exception
Exceptionpublic GXInboundResponse head() throws Exception
Exceptionpublic void clear()
public GXInboundResponse put(String body) throws Exception
body - the body of the requestExceptionpublic GXInboundResponse put() throws Exception
Exceptionpublic GXInboundResponse post() throws Exception
Exceptionpublic GXInboundResponse post(String body) throws Exception
body - the body of the requestExceptionpublic GXInboundResponse trace() throws Exception
Exceptionpublic GXInboundResponse patch() throws Exception
Exceptionpublic GXInboundResponse options() throws Exception
Exceptionpublic GXInboundResponse connect() throws Exception
Exceptionpublic void isExternalCall(boolean ext)
ext - true if external, false otherwiseCopyright © 2018. All Rights Reserved.