public interface ResourceStreamer
Resource
to
stream is a ClasspathResource
or ContextResource
.Modifier and Type | Method and Description |
---|---|
void |
streamResource(Resource resource)
Streams the content of the resource to the client (or sends
an alternative response such as
HttpServletResponse.SC_NOT_MODIFIED ). |
void |
streamResource(StreamableResource resource)
Streams a resource that has been assembled elsewhere.
|
void streamResource(Resource resource) throws IOException
HttpServletResponse.SC_NOT_MODIFIED
). Encapsulates logic for compression
and for caching.IOException
StreamableResourceSource
void streamResource(StreamableResource resource) throws IOException
resource
- IOException
Copyright © 2003-2012 The Apache Software Foundation.