|
1 | 1 | package com.github.dockerjava.jaxrs; |
2 | 2 |
|
3 | | -import static javax.ws.rs.client.Entity.entity; |
4 | | - |
5 | | -import java.io.IOException; |
6 | | -import java.io.InputStream; |
7 | | -import java.util.Iterator; |
8 | | - |
9 | | -import javax.ws.rs.client.Invocation; |
10 | | -import javax.ws.rs.client.WebTarget; |
11 | | -import javax.ws.rs.core.MediaType; |
12 | | -import javax.ws.rs.core.Response; |
13 | | - |
14 | | -import org.glassfish.jersey.client.ClientProperties; |
15 | | -import org.glassfish.jersey.client.RequestEntityProcessing; |
16 | | -import org.slf4j.Logger; |
17 | | -import org.slf4j.LoggerFactory; |
18 | | - |
19 | 3 | import com.fasterxml.jackson.databind.ObjectMapper; |
20 | 4 | import com.fasterxml.jackson.databind.ObjectReader; |
21 | 5 | import com.github.dockerjava.api.command.BuildImageCmd; |
22 | 6 | import com.github.dockerjava.api.model.AuthConfigurations; |
23 | 7 | import com.github.dockerjava.api.model.EventStreamItem; |
24 | 8 | import com.github.dockerjava.jaxrs.util.WrappedResponseInputStream; |
25 | 9 | import com.google.common.collect.ImmutableList; |
| 10 | +import org.glassfish.jersey.client.ClientProperties; |
| 11 | +import org.glassfish.jersey.client.RequestEntityProcessing; |
| 12 | +import org.slf4j.Logger; |
| 13 | +import org.slf4j.LoggerFactory; |
| 14 | + |
| 15 | +import javax.ws.rs.client.Invocation; |
| 16 | +import javax.ws.rs.client.WebTarget; |
| 17 | +import javax.ws.rs.core.MediaType; |
| 18 | +import javax.ws.rs.core.Response; |
| 19 | +import java.io.IOException; |
| 20 | +import java.io.InputStream; |
| 21 | +import java.util.Iterator; |
| 22 | + |
| 23 | +import static javax.ws.rs.client.Entity.entity; |
26 | 24 |
|
27 | 25 | public class BuildImageCmdExec extends |
28 | 26 | AbstrDockerCmdExec<BuildImageCmd, BuildImageCmd.Response> implements |
@@ -112,5 +110,11 @@ public Iterable<EventStreamItem> getItems() throws IOException { |
112 | 110 | public int read() throws IOException { |
113 | 111 | return proxy.read(); |
114 | 112 | } |
| 113 | + |
| 114 | + @Override |
| 115 | + public void close() throws IOException { |
| 116 | + proxy.close(); |
| 117 | + super.close(); |
| 118 | + } |
115 | 119 | } |
116 | 120 | } |
0 commit comments