public class GXHTTPStreamRequest extends Object implements org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear up the request.
|
GXInboundResponse |
connect() |
GXInboundResponse |
delete() |
GXHTTPStreamRequest |
from(String agent) |
GXInboundResponse |
get() |
GXInboundResponse |
head() |
GXHTTPStreamRequest |
header(String name,
String value) |
void |
isExternalCall(boolean ext) |
static GXHTTPStreamRequest |
newRequest(String address)
Creates a new request.
|
GXInboundResponse |
options() |
GXInboundResponse |
patch() |
GXHTTPStreamRequest |
path(String path) |
GXInboundResponse |
post() |
GXInboundResponse |
post(InputStream body) |
GXInboundResponse |
put() |
GXInboundResponse |
put(InputStream body) |
GXHTTPStreamRequest |
queryParams(Map<String,String> queryParams) |
void |
setSecurityToken(String token) |
GXInboundResponse |
trace() |
public static GXHTTPStreamRequest newRequest(String address)
address - the address of the web app to callpublic GXInboundResponse put(InputStream body) throws Exception
put in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>Exceptionpublic GXInboundResponse post(InputStream body) throws Exception
post in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>Exceptionpublic GXInboundResponse put() throws Exception
put in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>Exceptionpublic GXInboundResponse delete() throws Exception
delete in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>Exceptionpublic GXInboundResponse head() throws Exception
head in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>Exceptionpublic GXInboundResponse get() throws Exception
get in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>Exceptionpublic GXInboundResponse post() throws Exception
post in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>Exceptionpublic GXInboundResponse trace() throws Exception
trace in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>Exceptionpublic GXInboundResponse patch() throws Exception
patch in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>Exceptionpublic GXInboundResponse options() throws Exception
options in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>Exceptionpublic GXInboundResponse connect() throws Exception
connect in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>Exceptionpublic void setSecurityToken(String token)
setSecurityToken in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>public void isExternalCall(boolean ext)
isExternalCall in interface org.gcube.common.gxhttp.reference.GXHTTP<InputStream,GXInboundResponse>public GXHTTPStreamRequest from(String agent)
string - public void clear()
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 © 2021. All Rights Reserved.