public class DockerResource
extends org.springframework.core.io.AbstractResource
Resource implementation for resolving a Docker image.
Note: getInputStream() throws UnsupportedOperationException.| Modifier and Type | Field and Description |
|---|---|
static String |
URI_SCHEME |
| Constructor and Description |
|---|
DockerResource(String imageName)
Create a new
DockerResource from an image name. |
DockerResource(URI uri)
Create a new
DockerResource from a URI |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
InputStream |
getInputStream()
This implementation currently throws
UnsupportedOperationException |
URI |
getURI() |
public static String URI_SCHEME
public DockerResource(String imageName)
DockerResource from an image name.imageName - the name of the image in a docker registry.public DockerResource(URI uri)
DockerResource from a URIuri - a URIpublic String getDescription()
public InputStream getInputStream() throws IOException
UnsupportedOperationExceptionIOExceptionpublic URI getURI() throws IOException
getURI in interface org.springframework.core.io.ResourcegetURI in class org.springframework.core.io.AbstractResourceIOExceptionCopyright © 2020 Pivotal Software, Inc.. All rights reserved.