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,
MultipartFormDataObject multipart,
ResponseHandler<R> responseHandler)
Send a multipart/form-data POST 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 post(URI uri, List<RequestHeader> requestHeaders, MultipartFormDataObject multipart, ResponseHandler<R> responseHandler)
The content type of the request will 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 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 © 2024 Worldline Online Payments Direct. All rights reserved.