com.fitbur.github.dockerjava.jaxrs.ContainerDiffCmdExec Maven / Gradle / Ivy
package com.fitbur.github.dockerjava.jaxrs;
import com.fitbur.github.dockerjava.api.com.fitburmand.ContainerDiffCmd;
import com.fitbur.github.dockerjava.api.model.ChangeLog;
import com.fitbur.github.dockerjava.core.DockerClientConfig;
import com.fitbur.slf4j.Logger;
import com.fitbur.slf4j.LoggerFactory;
import javax.ws.rs.client.WebTarget;
import javax.ws.rs.core.GenericType;
import javax.ws.rs.core.MediaType;
import java.util.List;
public class ContainerDiffCmdExec extends AbstrSyncDockerCmdExec> implements
ContainerDiffCmd.Exec {
private static final Logger LOGGER = LoggerFactory.getLogger(ContainerDiffCmdExec.class);
public ContainerDiffCmdExec(WebTarget baseResource, DockerClientConfig dockerClientConfig) {
super(baseResource, dockerClientConfig);
}
@Override
protected List execute(ContainerDiffCmd com.fitburmand) {
WebTarget webResource = getBaseResource().path("/containers/{id}/changes").resolveTemplate("id",
com.fitburmand.getContainerId());
LOGGER.trace("GET: {}", webResource);
return webResource.request().accept(MediaType.APPLICATION_JSON).get(new GenericType>() {
});
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy