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 Online Payments platform.
|
<R> R |
get(URI uri,
List<RequestHeader> requestHeaders,
ResponseHandler<R> responseHandler)
Send a GET request to the Online Payments platform.
|
<R> R |
post(URI uri,
List<RequestHeader> requestHeaders,
String body,
ResponseHandler<R> responseHandler)
Send a POST request to the Online Payments platform.
|
<R> R |
put(URI uri,
List<RequestHeader> requestHeaders,
String body,
ResponseHandler<R> responseHandler)
Send a PUT request to the Online Payments 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 Online Payments 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 Online Payments 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 Online Payments 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 Online Payments platformCopyright © 2023 Worldline Online Payments Direct. All rights reserved.