-
public interface Connection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionacceptType(String acceptType)Connectionauthorization(String authorization)ConnectioncontentType(String contentType)Connectioncookie(String name, String value)Responsedelete()Responseget()Connectionheader(String name, String value)Connectioninit(String endPoint)Connectionparams(String params)Responsepatch(String body)Connectionpath(String path)Responsepost(String body)Responseput(String body)Connectiontimeout(Integer timeout)
-
-
-
Method Detail
-
init
Connection init(String endPoint)
-
get
Response get() throws PluginResourceException
- Throws:
PluginResourceException
-
post
Response post(String body) throws PluginResourceException
- Throws:
PluginResourceException
-
put
Response put(String body) throws PluginResourceException
- Throws:
PluginResourceException
-
patch
Response patch(String body) throws PluginResourceException
- Throws:
PluginResourceException
-
delete
Response delete() throws PluginResourceException
- Throws:
PluginResourceException
-
authorization
Connection authorization(String authorization)
-
path
Connection path(String path)
-
contentType
Connection contentType(String contentType)
-
acceptType
Connection acceptType(String acceptType)
-
header
Connection header(String name, String value)
-
cookie
Connection cookie(String name, String value)
-
params
Connection params(String params)
-
timeout
Connection timeout(Integer timeout)
-
-