org.jasig.portal
Interface IMultithreadedMimeResponse


Deprecated. Use the IChannel* interfaces instead or write a portlet. For more information see: http://www.ja-sig.org/wiki/display/UPC/Proposal+to+Deprecate+IMultithreaded+Interfaces

@Deprecated
public interface IMultithreadedMimeResponse

An interface that a multithreaded channel that wants to download MIME files must implement.

Version:
$Revision: 19776 $
Author:
Alex Vigdor

Method Summary
 void downloadData(OutputStream out, String uid)
          Deprecated. Pass the OutputStream object to the download code if it needs special handling (like outputting a Zip file).
 String getContentType(String uid)
          Deprecated. Returns the MIME type of the content.
 Map getHeaders(String uid)
          Deprecated. Returns a list of header values that can be set in the HttpResponse.
 InputStream getInputStream(String uid)
          Deprecated. Returns the MIME content in the form of an input stream.
 String getName(String uid)
          Deprecated. Returns the name of the MIME file.
 void reportDownloadError(Exception e)
          Deprecated. Let the channel know that there were problems with the download
 

Method Detail

getContentType

String getContentType(String uid)
Deprecated. 
Returns the MIME type of the content.


getInputStream

InputStream getInputStream(String uid)
                           throws IOException
Deprecated. 
Returns the MIME content in the form of an input stream. Returns null if the code needs the OutputStream object

Throws:
IOException

downloadData

void downloadData(OutputStream out,
                  String uid)
                  throws IOException
Deprecated. 
Pass the OutputStream object to the download code if it needs special handling (like outputting a Zip file).

Throws:
IOException

getName

String getName(String uid)
Deprecated. 
Returns the name of the MIME file.


getHeaders

Map getHeaders(String uid)
Deprecated. 
Returns a list of header values that can be set in the HttpResponse. Returns null if no headers need to be set.


reportDownloadError

void reportDownloadError(Exception e)
Deprecated. 
Let the channel know that there were problems with the download

Parameters:
e -


Copyright © 2010 Jasig. All Rights Reserved.