public interface HttpTransport
| Modifier and Type | Interface and Description |
|---|---|
static interface |
HttpTransport.Response
An HTTP operation response.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpTransport |
create(DockerHost dockerHost)
Create the most suitable
HttpTransport based on the DockerHost. |
HttpTransport.Response |
delete(java.net.URI uri)
Perform an HTTP DELETE operation.
|
HttpTransport.Response |
get(java.net.URI uri)
Perform an HTTP GET operation.
|
HttpTransport.Response |
post(java.net.URI uri)
Perform an HTTP POST operation.
|
HttpTransport.Response |
post(java.net.URI uri,
java.lang.String registryAuth)
Perform an HTTP POST operation.
|
HttpTransport.Response |
post(java.net.URI uri,
java.lang.String contentType,
IOConsumer<java.io.OutputStream> writer)
Perform an HTTP POST operation.
|
HttpTransport.Response |
put(java.net.URI uri,
java.lang.String contentType,
IOConsumer<java.io.OutputStream> writer)
Perform an HTTP PUT operation.
|
HttpTransport.Response get(java.net.URI uri) throws java.io.IOException
uri - the destination URI (excluding any host/port)java.io.IOException - on IO errorHttpTransport.Response post(java.net.URI uri) throws java.io.IOException
uri - the destination URI (excluding any host/port)java.io.IOException - on IO errorHttpTransport.Response post(java.net.URI uri, java.lang.String registryAuth) throws java.io.IOException
uri - the destination URI (excluding any host/port)registryAuth - registry authentication credentialsjava.io.IOException - on IO errorHttpTransport.Response post(java.net.URI uri, java.lang.String contentType, IOConsumer<java.io.OutputStream> writer) throws java.io.IOException
uri - the destination URI (excluding any host/port)contentType - the content type to writewriter - a content writerjava.io.IOException - on IO errorHttpTransport.Response put(java.net.URI uri, java.lang.String contentType, IOConsumer<java.io.OutputStream> writer) throws java.io.IOException
uri - the destination URI (excluding any host/port)contentType - the content type to writewriter - a content writerjava.io.IOException - on IO errorHttpTransport.Response delete(java.net.URI uri) throws java.io.IOException
uri - the destination URI (excluding any host/port)java.io.IOException - on IO errorstatic HttpTransport create(DockerHost dockerHost)
HttpTransport based on the DockerHost.dockerHost - the Docker host informationHttpTransport instance