Package | Description |
---|---|
org.springframework.core.io |
Generic abstraction for (file-based) resources, used throughout the framework.
|
org.springframework.web.context.support |
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes. |
org.springframework.web.reactive.resource |
Support classes for serving static resources.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractFileResolvingResource
Abstract base class for resources which resolve URLs into File references,
such as
UrlResource or ClassPathResource . |
class |
ByteArrayResource
Resource implementation for a given byte array. |
class |
ClassPathResource
Resource implementation for class path resources. |
protected static class |
DefaultResourceLoader.ClassPathContextResource
ClassPathResource that explicitly expresses a context-relative path
through implementing the ContextResource interface.
|
class |
DescriptiveResource
Simple
Resource implementation that holds a resource description
but does not point to an actually readable resource. |
class |
FileSystemResource
|
class |
FileUrlResource
Subclass of
UrlResource which assumes file resolution, to the degree
of implementing the WritableResource interface for it. |
class |
InputStreamResource
Resource implementation for a given InputStream . |
class |
PathResource
Deprecated.
as of 5.1.1, in favor of
FileSystemResource.FileSystemResource(Path) |
class |
UrlResource
Resource implementation for java.net.URL locators. |
class |
VfsResource
JBoss VFS based
Resource implementation. |
Modifier and Type | Class and Description |
---|---|
class |
ServletContextResource
Resource implementation for
ServletContext resources, interpreting
relative paths within the web application root directory. |
Modifier and Type | Class and Description |
---|---|
class |
TransformedResource
An extension of
ByteArrayResource that a ResourceTransformer
can use to represent an original resource preserving all other information
except the content. |