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