org.chenillekit.tapestry.core.utils
Class InlineStreamResponse

java.lang.Object
  extended by 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 $

Field Summary
protected  String contentType
           
protected  String extension
           
protected  String filename
           
 
Constructor Summary
InlineStreamResponse(InputStream is, String... args)
           
 
Method Summary
 String getContentType()
           
 InputStream getStream()
           
 void prepareResponse(Response arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentType

protected String contentType

extension

protected String extension

filename

protected String filename
Constructor Detail

InlineStreamResponse

public InlineStreamResponse(InputStream is,
                            String... args)
Method Detail

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-2010 ChenilleKit. All Rights Reserved.