|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@UsesMappedConfiguration(value=java.lang.String.class) public interface ResourceStreamer
Responsible for streaming the contents of a resource to the client. The Resource to
stream is almost always a ClasspathResource.
| Method Summary | |
|---|---|
String |
getContentType(Resource resource)
Analyzes the resource to determine what its content type is, possibly using the service's configuration. |
void |
streamResource(Resource resource)
Streams the content of the resource to the client. |
| Method Detail |
|---|
void streamResource(Resource resource)
throws IOException
IOException
String getContentType(Resource resource)
throws IOException
resource - to analyze
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||