com.fitbur.github.dockerjava.jaxrs.InspectExecCmdExec Maven / Gradle / Ivy
package com.fitbur.github.dockerjava.jaxrs;
import com.fitbur.github.dockerjava.api.com.fitburmand.InspectExecCmd;
import com.fitbur.github.dockerjava.api.com.fitburmand.InspectExecResponse;
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.MediaType;
public class InspectExecCmdExec extends AbstrSyncDockerCmdExec implements
InspectExecCmd.Exec {
private static final Logger LOGGER = LoggerFactory.getLogger(InspectExecCmdExec.class);
public InspectExecCmdExec(WebTarget baseResource, DockerClientConfig dockerClientConfig) {
super(baseResource, dockerClientConfig);
}
@Override
protected InspectExecResponse execute(InspectExecCmd com.fitburmand) {
WebTarget webResource = getBaseResource().path("/exec/{id}/json").resolveTemplate("id", com.fitburmand.getExecId());
LOGGER.com.fitburbug("GET: {}", webResource);
return webResource.request().accept(MediaType.APPLICATION_JSON).get(InspectExecResponse.class);
}
}