|
2 | 2 |
|
3 | 3 | import static com.google.common.base.Preconditions.checkNotNull; |
4 | 4 |
|
5 | | -import java.io.IOException; |
6 | | -import java.net.InetSocketAddress; |
7 | | -import java.net.Proxy; |
8 | | -import java.net.ProxySelector; |
9 | | -import java.net.URI; |
10 | | -import java.util.List; |
11 | | - |
12 | | -import javax.net.ssl.SSLContext; |
13 | | -import javax.ws.rs.client.Client; |
14 | | -import javax.ws.rs.client.ClientBuilder; |
15 | | -import javax.ws.rs.client.ClientRequestFilter; |
16 | | -import javax.ws.rs.client.ClientResponseFilter; |
17 | | -import javax.ws.rs.client.WebTarget; |
18 | | - |
19 | | -import com.github.dockerjava.api.command.*; |
| 5 | +import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider; |
| 6 | +import com.github.dockerjava.api.command.AttachContainerCmd; |
| 7 | +import com.github.dockerjava.api.command.AuthCmd; |
| 8 | +import com.github.dockerjava.api.command.BuildImageCmd; |
| 9 | +import com.github.dockerjava.api.command.CommitCmd; |
| 10 | +import com.github.dockerjava.api.command.ContainerDiffCmd; |
| 11 | +import com.github.dockerjava.api.command.CopyArchiveFromContainerCmd; |
| 12 | +import com.github.dockerjava.api.command.CopyArchiveToContainerCmd; |
| 13 | +import com.github.dockerjava.api.command.CopyFileFromContainerCmd; |
| 14 | +import com.github.dockerjava.api.command.CreateContainerCmd; |
| 15 | +import com.github.dockerjava.api.command.CreateImageCmd; |
| 16 | +import com.github.dockerjava.api.command.CreateVolumeCmd; |
| 17 | +import com.github.dockerjava.api.command.DockerCmdExecFactory; |
| 18 | +import com.github.dockerjava.api.command.EventsCmd; |
| 19 | +import com.github.dockerjava.api.command.ExecCreateCmd; |
| 20 | +import com.github.dockerjava.api.command.ExecStartCmd; |
| 21 | +import com.github.dockerjava.api.command.InfoCmd; |
| 22 | +import com.github.dockerjava.api.command.InspectContainerCmd; |
| 23 | +import com.github.dockerjava.api.command.InspectExecCmd; |
| 24 | +import com.github.dockerjava.api.command.InspectImageCmd; |
| 25 | +import com.github.dockerjava.api.command.InspectNetworkCmd; |
| 26 | +import com.github.dockerjava.api.command.InspectVolumeCmd; |
| 27 | +import com.github.dockerjava.api.command.KillContainerCmd; |
| 28 | +import com.github.dockerjava.api.command.ListContainersCmd; |
| 29 | +import com.github.dockerjava.api.command.ListImagesCmd; |
| 30 | +import com.github.dockerjava.api.command.ListNetworksCmd; |
| 31 | +import com.github.dockerjava.api.command.ListVolumesCmd; |
| 32 | +import com.github.dockerjava.api.command.LogContainerCmd; |
| 33 | +import com.github.dockerjava.api.command.PauseContainerCmd; |
| 34 | +import com.github.dockerjava.api.command.PingCmd; |
| 35 | +import com.github.dockerjava.api.command.PullImageCmd; |
| 36 | +import com.github.dockerjava.api.command.PushImageCmd; |
| 37 | +import com.github.dockerjava.api.command.RemoveContainerCmd; |
| 38 | +import com.github.dockerjava.api.command.RemoveImageCmd; |
| 39 | +import com.github.dockerjava.api.command.RemoveVolumeCmd; |
| 40 | +import com.github.dockerjava.api.command.RestartContainerCmd; |
| 41 | +import com.github.dockerjava.api.command.SaveImageCmd; |
| 42 | +import com.github.dockerjava.api.command.SearchImagesCmd; |
| 43 | +import com.github.dockerjava.api.command.StartContainerCmd; |
| 44 | +import com.github.dockerjava.api.command.StatsCmd; |
| 45 | +import com.github.dockerjava.api.command.StopContainerCmd; |
| 46 | +import com.github.dockerjava.api.command.TagImageCmd; |
| 47 | +import com.github.dockerjava.api.command.TopContainerCmd; |
| 48 | +import com.github.dockerjava.api.command.UnpauseContainerCmd; |
| 49 | +import com.github.dockerjava.api.command.VersionCmd; |
| 50 | +import com.github.dockerjava.api.command.WaitContainerCmd; |
| 51 | +import com.github.dockerjava.api.exception.DockerClientException; |
| 52 | +import com.github.dockerjava.core.DockerClientConfig; |
| 53 | +import com.github.dockerjava.jaxrs.connector.ApacheConnectorProvider; |
| 54 | +import com.github.dockerjava.jaxrs.filter.JsonClientFilter; |
| 55 | +import com.github.dockerjava.jaxrs.filter.ResponseStatusExceptionFilter; |
| 56 | +import com.github.dockerjava.jaxrs.filter.SelectiveLoggingFilter; |
20 | 57 | import org.apache.http.config.RegistryBuilder; |
21 | 58 | import org.apache.http.conn.socket.ConnectionSocketFactory; |
22 | 59 | import org.apache.http.conn.socket.PlainConnectionSocketFactory; |
|
29 | 66 | import org.slf4j.Logger; |
30 | 67 | import org.slf4j.LoggerFactory; |
31 | 68 |
|
32 | | -import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider; |
33 | | -import com.github.dockerjava.api.exception.DockerClientException; |
34 | | -import com.github.dockerjava.core.DockerClientConfig; |
35 | | -import com.github.dockerjava.jaxrs.connector.ApacheConnectorProvider; |
36 | | -import com.github.dockerjava.jaxrs.filter.JsonClientFilter; |
37 | | -import com.github.dockerjava.jaxrs.filter.ResponseStatusExceptionFilter; |
38 | | -import com.github.dockerjava.jaxrs.filter.SelectiveLoggingFilter; |
| 69 | +import javax.net.ssl.SSLContext; |
| 70 | +import javax.ws.rs.client.Client; |
| 71 | +import javax.ws.rs.client.ClientBuilder; |
| 72 | +import javax.ws.rs.client.ClientRequestFilter; |
| 73 | +import javax.ws.rs.client.ClientResponseFilter; |
| 74 | +import javax.ws.rs.client.WebTarget; |
| 75 | +import java.io.IOException; |
| 76 | +import java.net.InetSocketAddress; |
| 77 | +import java.net.Proxy; |
| 78 | +import java.net.ProxySelector; |
| 79 | +import java.net.URI; |
| 80 | +import java.util.List; |
39 | 81 |
|
40 | 82 | //import org.glassfish.jersey.apache.connector.ApacheConnectorProvider; |
41 | 83 | // see https://github.com/docker-java/docker-java/issues/196 |
@@ -408,6 +450,12 @@ public ListNetworksCmd.Exec createListNetworksCmdExec() { |
408 | 450 | return new ListNetworksCmdExec(getBaseResource(), getDockerClientConfig()); |
409 | 451 | } |
410 | 452 |
|
| 453 | + @Override |
| 454 | + public InspectNetworkCmd.Exec createInspectNetworkCmdExec() { |
| 455 | + |
| 456 | + return new InspectNetworkCmdExec(getBaseResource(), getDockerClientConfig()); |
| 457 | + } |
| 458 | + |
411 | 459 | @Override |
412 | 460 | public void close() throws IOException { |
413 | 461 | checkNotNull(client, "Factory not initialized. You probably forgot to call init()!"); |
|
0 commit comments