接口 HttpTransport
public interface HttpTransport
HTTP transport used for docker access.
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Scott Frederick, Harry Yang
-
嵌套类概要
嵌套类 -
方法概要
修饰符和类型方法说明static HttpTransportcreate(DockerConfiguration.DockerHostConfiguration dockerHost) Create the most suitableHttpTransportbased on theDockerHost.Perform an HTTP DELETE operation.Perform an HTTP GET operation.Perform an HTTP POST operation.Perform an HTTP POST operation.post(URI uri, String contentType, IOConsumer<OutputStream> writer) Perform an HTTP POST operation.put(URI uri, String contentType, IOConsumer<OutputStream> writer) Perform an HTTP PUT operation.
-
方法详细资料
-
get
Perform an HTTP GET operation.- 参数:
uri- the destination URI (excluding any host/port)- 返回:
- the operation response
- 抛出:
IOException- on IO error
-
post
Perform an HTTP POST operation.- 参数:
uri- the destination URI (excluding any host/port)- 返回:
- the operation response
- 抛出:
IOException- on IO error
-
post
Perform an HTTP POST operation.- 参数:
uri- the destination URI (excluding any host/port)registryAuth- registry authentication credentials- 返回:
- the operation response
- 抛出:
IOException- on IO error
-
post
HttpTransport.Response post(URI uri, String contentType, IOConsumer<OutputStream> writer) throws IOException Perform an HTTP POST operation.- 参数:
uri- the destination URI (excluding any host/port)contentType- the content type to writewriter- a content writer- 返回:
- the operation response
- 抛出:
IOException- on IO error
-
put
HttpTransport.Response put(URI uri, String contentType, IOConsumer<OutputStream> writer) throws IOException Perform an HTTP PUT operation.- 参数:
uri- the destination URI (excluding any host/port)contentType- the content type to writewriter- a content writer- 返回:
- the operation response
- 抛出:
IOException- on IO error
-
delete
Perform an HTTP DELETE operation.- 参数:
uri- the destination URI (excluding any host/port)- 返回:
- the operation response
- 抛出:
IOException- on IO error
-
create
Create the most suitableHttpTransportbased on theDockerHost.- 参数:
dockerHost- the Docker host information- 返回:
- a
HttpTransportinstance
-