org.jasig.portal
Interface IMultithreadedMimeResponse

All Known Implementing Classes:
CPersonAttributes, CWebProxy

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

public interface IMultithreadedMimeResponse

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

Version:
$Revision: 1.6.4.1 $
Author:
Alex Vigdor

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

Method Detail

getContentType

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


getInputStream

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

Throws:
java.io.IOException

downloadData

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

Throws:
java.io.IOException

getName

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


getHeaders

java.util.Map getHeaders(java.lang.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(java.lang.Exception e)
Deprecated. 
Let the channel know that there were problems with the download

Parameters:
e -