public class GXHTTPStringRequest extends GXHTTPCommonRequest implements GXHTTP<String,HttpURLConnection>
builder, logger| Modifier and Type | Method and Description |
|---|---|
GXHTTPStringRequest |
from(String agent) |
GXHTTPStringRequest |
header(String name,
String value) |
static GXHTTPStringRequest |
newRequest(String address)
Creates a new request.
|
GXHTTPStringRequest |
path(String path) |
HttpURLConnection |
post(String body)
Sends the POST request to the web application.
|
HttpURLConnection |
put(String body)
Sends the PUT request to the web application.
|
GXHTTPStringRequest |
queryParams(Map<String,String> queryParams) |
GXHTTPStringRequest |
withBody(String body)
Sets the body of the request.
|
clear, connect, delete, get, head, isExternalCall, options, patch, post, put, setSecurityToken, tracepublic static GXHTTPStringRequest newRequest(String address)
address - the address of the web app to callpublic GXHTTPStringRequest withBody(String body)
body - public HttpURLConnection put(String body) throws Exception
GXHTTPput in interface GXHTTP<String,HttpURLConnection>body - the body of the requestExceptionpublic HttpURLConnection post(String body) throws Exception
GXHTTPpost in interface GXHTTP<String,HttpURLConnection>body - the body of the requestExceptionpublic GXHTTPStringRequest from(String agent)
string - public GXHTTPStringRequest path(String path) throws UnsupportedEncodingException
string - UnsupportedEncodingExceptionpublic GXHTTPStringRequest header(String name, String value)
name - value - public GXHTTPStringRequest queryParams(Map<String,String> queryParams) throws UnsupportedEncodingException
queryParams - UnsupportedEncodingExceptionCopyright © 2019. All Rights Reserved.