Interface IHttpConnection
- All Superinterfaces:
IConnection
- All Known Implementing Classes:
HttpConnection
This interface describes a connection to send data over http.
- Since:
- 9.0
- Author:
- Jon van Leuven
-
Method Summary
Modifier and TypeMethodDescriptionfill()
Returns an object which can fill in the missing configurations of this connection.getUrl()
This method returns the url used for connecting to the endpoint.void
invoke
(IHttpRequest request, IHttpResponseHandler handler) This method should be called to transfer data over http and handle its response.Methods inherited from interface com.aquima.interactions.foundation.connectivity.IConnection
getName, getType
-
Method Details
-
getUrl
String getUrl()This method returns the url used for connecting to the endpoint.- Returns:
- The url (never null).
-
fill
IHttpConnectionFiller fill()Returns an object which can fill in the missing configurations of this connection.- Returns:
- a filler for this connection's settings.
-
invoke
This method should be called to transfer data over http and handle its response.- Parameters:
request
- The object that is responsible for the http request data.handler
- The object that is used to handle the http response.- Throws:
IOException
- Is thrown when IO error occurs.
-