org.apache.tapestry5.internal.services
Interface ResourceStreamer

All Known Implementing Classes:
ResourceStreamerImpl

public interface ResourceStreamer

Responsible for streaming the contents of a resource to the client. The Resource to stream is a ClasspathResource or ContextResource.

Since:
5.1.0.0

Method Summary
 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.
 

Method Detail

streamResource

void streamResource(Resource resource)
                    throws IOException
Streams the content of the resource to the client (or sends an alternative response such as HttpServletResponse.SC_NOT_MODIFIED). Encapsulates logic for compression and for caching.

Throws:
IOException
See Also:
StreamableResourceSource

streamResource

void streamResource(StreamableResource resource)
                    throws IOException
Streams a resource that has been assembled elsewhere.

Parameters:
resource -
Throws:
IOException
Since:
5.3


Copyright © 2003-2012 The Apache Software Foundation.