org.apache.tapestry5.internal.services
Class ResourceStreamerImpl
java.lang.Object
org.apache.tapestry5.internal.services.ResourceStreamerImpl
- All Implemented Interfaces:
- ResourceStreamer
public class ResourceStreamerImpl
- extends Object
- implements ResourceStreamer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceStreamerImpl
public ResourceStreamerImpl(Request request,
Response response,
StreamableResourceSource streamableResourceSource,
ResponseCompressionAnalyzer analyzer,
OperationTracker tracker,
@Symbol(value="tapestry.production-mode")
boolean productionMode,
ResourceChangeTracker resourceChangeTracker)
streamResource
public void streamResource(Resource resource)
throws IOException
- Description copied from interface:
ResourceStreamer
- 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.
- Specified by:
streamResource
in interface ResourceStreamer
- Throws:
IOException
- See Also:
StreamableResourceSource
streamResource
public void streamResource(StreamableResource streamable)
throws IOException
- Description copied from interface:
ResourceStreamer
- Streams a resource that has been assembled elsewhere.
- Specified by:
streamResource
in interface ResourceStreamer
- Throws:
IOException
Copyright © 2003-2012 The Apache Software Foundation.