com.googlecode.fascinator.portal.services
Class GenericStreamResponse

java.lang.Object
  extended by com.googlecode.fascinator.portal.services.GenericStreamResponse
All Implemented Interfaces:
org.apache.tapestry5.StreamResponse

public class GenericStreamResponse
extends Object
implements org.apache.tapestry5.StreamResponse


Constructor Summary
GenericStreamResponse(String type, InputStream stream)
           
 
Method Summary
 String getContentType()
           
 InputStream getStream()
           
static GenericStreamResponse noResponse()
           
 void prepareResponse(org.apache.tapestry5.services.Response response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericStreamResponse

public GenericStreamResponse(String type,
                             InputStream stream)
Method Detail

getContentType

public String getContentType()
Specified by:
getContentType in interface org.apache.tapestry5.StreamResponse

getStream

public InputStream getStream()
                      throws IOException
Specified by:
getStream in interface org.apache.tapestry5.StreamResponse
Throws:
IOException

prepareResponse

public void prepareResponse(org.apache.tapestry5.services.Response response)
Specified by:
prepareResponse in interface org.apache.tapestry5.StreamResponse

noResponse

public static GenericStreamResponse noResponse()


Copyright © 2009-2014. All Rights Reserved.