public interface Connection extends Closeable, LoggingCapable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases any system resources associated with this object.
|
<R> R |
delete(URI uri,
List<RequestHeader> requestHeaders,
ResponseHandler<R> responseHandler)
Send a DELETE request to the Ingenico ePayments platform.
|
<R> R |
get(URI uri,
List<RequestHeader> requestHeaders,
ResponseHandler<R> responseHandler)
Send a GET request to the Ingenico ePayments platform.
|
<R> R |
post(URI uri,
List<RequestHeader> requestHeaders,
MultipartFormDataObject multipart,
ResponseHandler<R> responseHandler)
Send a multipart/form-data POST request to the Ingenico ePayments platform.
|
<R> R |
post(URI uri,
List<RequestHeader> requestHeaders,
String body,
ResponseHandler<R> responseHandler)
Send a POST request to the Ingenico ePayments platform.
|
<R> R |
put(URI uri,
List<RequestHeader> requestHeaders,
MultipartFormDataObject multipart,
ResponseHandler<R> responseHandler)
Send a multipart/form-data PUT request to the Ingenico ePayments platform.
|
<R> R |
put(URI uri,
List<RequestHeader> requestHeaders,
String body,
ResponseHandler<R> responseHandler)
Send a PUT request to the Ingenico ePayments platform.
|
disableLogging, enableLoggingvoid close()
throws IOException
close in interface AutoCloseableclose in interface CloseableIOException<R> R get(URI uri, List<RequestHeader> requestHeaders, ResponseHandler<R> responseHandler)
uri - The URI to call, including any necessary query parameters.requestHeaders - An optional list of request headers.responseHandler - A handler for the response.CommunicationException - when an exception occurred communicating with the Ingenico ePayments platform<R> R delete(URI uri, List<RequestHeader> requestHeaders, ResponseHandler<R> responseHandler)
uri - The URI to call, including any necessary query parameters.requestHeaders - An optional list of request headers.responseHandler - A handler for the response.CommunicationException - when an exception occurred communicating with the Ingenico ePayments platform<R> R post(URI uri, List<RequestHeader> requestHeaders, String body, ResponseHandler<R> responseHandler)
uri - The URI to call, including any necessary query parameters.requestHeaders - An optional list of request headers.body - The optional body to send.responseHandler - A handler for the response.CommunicationException - when an exception occurred communicating with the Ingenico ePayments platform<R> R post(URI uri, List<RequestHeader> requestHeaders, MultipartFormDataObject multipart, ResponseHandler<R> responseHandler)
The content type of the request will be be part of the given request header list.
If the connection creates its own content type, it should be multipart.getContentType().
Otherwise, authentication failures will occur.
uri - The URI to call, including any necessary query parameters.requestHeaders - An optional list of request headers.multipart - The multipart/form-data request to send.responseHandler - A handler for the response.CommunicationException - when an exception occurred communicating with the Ingenico ePayments platform<R> R put(URI uri, List<RequestHeader> requestHeaders, String body, ResponseHandler<R> responseHandler)
uri - The URI to call, including any necessary query parameters.requestHeaders - An optional list of request headers.body - The optional body to send.responseHandler - A handler for the response.CommunicationException - when an exception occurred communicating with the Ingenico ePayments platform<R> R put(URI uri, List<RequestHeader> requestHeaders, MultipartFormDataObject multipart, ResponseHandler<R> responseHandler)
The content type of the request will be be part of the given request header list.
If the connection creates its own content type, it should be multipart.getContentType().
Otherwise, authentication failures will occur.
uri - The URI to call, including any necessary query parameters.requestHeaders - An optional list of request headers.multipart - The multipart/form-data request to send.responseHandler - A handler for the response.CommunicationException - when an exception occurred communicating with the Ingenico ePayments platformCopyright © 2024 Ingenico ePayments. All rights reserved.