org.chenillekit.tapestry.core.utils
Class InlineStreamResponse
java.lang.Object
org.chenillekit.tapestry.core.utils.InlineStreamResponse
- All Implemented Interfaces:
- StreamResponse
- Direct Known Subclasses:
- JPEGInline
public class InlineStreamResponse
- extends Object
- implements StreamResponse
stolen from Tapestry wiki page.
- Version:
- $Id: InlineStreamResponse.java 594 2009-12-05 15:17:26Z mlusetti $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
contentType
protected String contentType
extension
protected String extension
filename
protected String filename
InlineStreamResponse
public InlineStreamResponse(InputStream is,
String... args)
getContentType
public String getContentType()
- Specified by:
getContentType in interface StreamResponse
getStream
public InputStream getStream()
throws IOException
- Specified by:
getStream in interface StreamResponse
- Throws:
IOException
prepareResponse
public void prepareResponse(Response arg0)
- Specified by:
prepareResponse in interface StreamResponse
Copyright © 2008-2011 ChenilleKit. All Rights Reserved.