@Deprecated public class GXHTTPStringRequest extends Object implements org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>
org.gcube.common.gxhttp.request.GXHTTPStringRequest instead| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger
Deprecated.
|
public static GXHTTPStringRequest newRequest(String address)
address - the address of the web app to callpublic GXHTTPStringRequest withBody(String body)
body - public GXInboundResponse put(String body) throws Exception
put in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>Exceptionpublic GXInboundResponse post(String body) throws Exception
post in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>Exceptionpublic GXInboundResponse put() throws Exception
put in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>Exceptionpublic GXInboundResponse delete() throws Exception
delete in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>Exceptionpublic GXInboundResponse head() throws Exception
head in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>Exceptionpublic GXInboundResponse get() throws Exception
get in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>Exceptionpublic GXInboundResponse post() throws Exception
post in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>Exceptionpublic GXInboundResponse trace() throws Exception
trace in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>Exceptionpublic GXInboundResponse patch() throws Exception
patch in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>Exceptionpublic GXInboundResponse options() throws Exception
options in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>Exceptionpublic GXInboundResponse connect() throws Exception
connect in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>Exceptionpublic void setSecurityToken(String token)
setSecurityToken in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>public void isExternalCall(boolean ext)
isExternalCall in interface org.gcube.common.gxhttp.reference.GXHTTP<String,GXInboundResponse>public GXHTTPStringRequest from(String agent)
string - public void clear()
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.