-
public interface Connection
Connection interface.
- Since:
- 1.0.16
- Author:
- Logicommerce
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Connection
acceptType(String acceptType)
acceptType.Connection
authorization(String authorization)
authorization.Connection
contentType(String contentType)
contentType.Connection
cookie(String name, String value)
cookie.Response
delete()
delete.Response
get()
get.Connection
header(String name, String value)
header.Connection
init(String endPoint)
init.Connection
params(String params)
params.Response
patch(String body)
patch.Connection
path(String path)
path.Response
post(String body)
post.Response
put(String body)
put.Connection
queryParam(String name, String value)
queryParam.Connection
timeout(Integer timeout)
timeout.
-
-
-
Method Detail
-
init
Connection init(String endPoint)
init.
- Parameters:
endPoint
- aString
object- Returns:
- a
Connection
object
-
get
Response get() throws PluginResourceException
get.
- Returns:
- a
Response
object - Throws:
PluginResourceException
- if any.
-
post
Response post(String body) throws PluginResourceException
post.
- Parameters:
body
- aString
object- Returns:
- a
Response
object - Throws:
PluginResourceException
- if any.
-
put
Response put(String body) throws PluginResourceException
put.
- Parameters:
body
- aString
object- Returns:
- a
Response
object - Throws:
PluginResourceException
- if any.
-
patch
Response patch(String body) throws PluginResourceException
patch.
- Parameters:
body
- aString
object- Returns:
- a
Response
object - Throws:
PluginResourceException
- if any.
-
delete
Response delete() throws PluginResourceException
delete.
- Returns:
- a
Response
object - Throws:
PluginResourceException
- if any.
-
authorization
Connection authorization(String authorization)
authorization.
- Parameters:
authorization
- aString
object- Returns:
- a
Connection
object
-
path
Connection path(String path)
path.
- Parameters:
path
- aString
object- Returns:
- a
Connection
object
-
contentType
Connection contentType(String contentType)
contentType.
- Parameters:
contentType
- aString
object- Returns:
- a
Connection
object
-
acceptType
Connection acceptType(String acceptType)
acceptType.
- Parameters:
acceptType
- aString
object- Returns:
- a
Connection
object
-
header
Connection header(String name, String value)
header.
- Parameters:
name
- aString
objectvalue
- aString
object- Returns:
- a
Connection
object
-
cookie
Connection cookie(String name, String value)
cookie.
- Parameters:
name
- aString
objectvalue
- aString
object- Returns:
- a
Connection
object
-
queryParam
Connection queryParam(String name, String value)
queryParam.
- Parameters:
name
- aString
objectvalue
- aString
object- Returns:
- a
Connection
object
-
params
Connection params(String params)
params.
- Parameters:
params
- aString
object- Returns:
- a
Connection
object
-
timeout
Connection timeout(Integer timeout)
timeout.
- Parameters:
timeout
- aInteger
object- Returns:
- a
Connection
object
-
-