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(URI uri)
Perform an HTTP DELETE operation.
|
HttpTransport.Response |
get(URI uri)
Perform an HTTP GET operation.
|
HttpTransport.Response |
post(URI uri)
Perform an HTTP POST operation.
|
HttpTransport.Response |
post(URI uri,
String registryAuth)
Perform an HTTP POST operation.
|
HttpTransport.Response |
post(URI uri,
String contentType,
IOConsumer<OutputStream> writer)
Perform an HTTP POST operation.
|
HttpTransport.Response |
put(URI uri,
String contentType,
IOConsumer<OutputStream> writer)
Perform an HTTP PUT operation.
|
HttpTransport.Response get(URI uri) throws IOException
uri
- the destination URI (excluding any host/port)IOException
- on IO errorHttpTransport.Response post(URI uri) throws IOException
uri
- the destination URI (excluding any host/port)IOException
- on IO errorHttpTransport.Response post(URI uri, String registryAuth) throws IOException
uri
- the destination URI (excluding any host/port)registryAuth
- registry authentication credentialsIOException
- on IO errorHttpTransport.Response post(URI uri, String contentType, IOConsumer<OutputStream> writer) throws IOException
uri
- the destination URI (excluding any host/port)contentType
- the content type to writewriter
- a content writerIOException
- on IO errorHttpTransport.Response put(URI uri, String contentType, IOConsumer<OutputStream> writer) throws IOException
uri
- the destination URI (excluding any host/port)contentType
- the content type to writewriter
- a content writerIOException
- on IO errorHttpTransport.Response delete(URI uri) throws IOException
uri
- the destination URI (excluding any host/port)IOException
- on IO errorstatic HttpTransport create(DockerHost dockerHost)
HttpTransport
based on the DockerHost
.dockerHost
- the Docker host informationHttpTransport
instance