Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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 java.io.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:
    `java.io.IOException`
  See Also:
    `StreamableResourceSource`

### streamResource

    void streamResource(StreamableResource resource)
                        throws java.io.IOException

  Streams a resource that has been assembled elsewhere.

  Parameters:
    `resource` -
  Throws:
    `java.io.IOException`
  Since:
    5.3

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.