public interface Connection extends Closeable, LoggingCapable, ObfuscationCapable
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 Worldline Global Collect platform.
|
<R> R |
get(URI uri,
List<RequestHeader> requestHeaders,
ResponseHandler<R> responseHandler)
Send a GET request to the Worldline Global Collect platform.
|
<R> R |
post(URI uri,
List<RequestHeader> requestHeaders,
MultipartFormDataObject multipart,
ResponseHandler<R> responseHandler)
Send a multipart/form-data POST request to the Worldline Global Collect platform.
|
<R> R |
post(URI uri,
List<RequestHeader> requestHeaders,
String body,
ResponseHandler<R> responseHandler)
Send a POST request to the Worldline Global Collect platform.
|
<R> R |
put(URI uri,
List<RequestHeader> requestHeaders,
MultipartFormDataObject multipart,
ResponseHandler<R> responseHandler)
Send a multipart/form-data PUT request to the Worldline Global Collect platform.
|
<R> R |
put(URI uri,
List<RequestHeader> requestHeaders,
String body,
ResponseHandler<R> responseHandler)
Send a PUT request to the Worldline Global Collect platform.
|
disableLogging, enableLogging
setBodyObfuscator, setHeaderObfuscator
void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException
<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 Worldline Global Collect 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 Worldline Global Collect 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 Worldline Global Collect 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 Worldline Global Collect 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 Worldline Global Collect 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 Worldline Global Collect platformCopyright © 2024 Worldline Global Collect. All rights reserved.