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()
Create the most suitable
HttpTransport based on the
system environment. |
static HttpTransport |
create(DockerHost dockerHost)
Create the most suitable
HttpTransport based on the
system environment. |
static HttpTransport |
create(Environment environment)
Create the most suitable
HttpTransport based on the given
Environment. |
static HttpTransport |
create(Environment environment,
DockerHost 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()
HttpTransport based on the
system environment.HttpTransport instancestatic HttpTransport create(DockerHost dockerHost)
HttpTransport based on the
system environment.dockerHost - the Docker engine host configurationHttpTransport instancestatic HttpTransport create(Environment environment)
HttpTransport based on the given
Environment.environment - the source environmentHttpTransport instancestatic HttpTransport create(Environment environment, DockerHost dockerHost)
environment - the source environmentdockerHost - the Docker engine host configurationHttpTransport instance