org.jasig.portal
Class MultithreadedMimeResponseCharacterChannelAdapter

java.lang.Object
  extended by org.jasig.portal.MultithreadedCharacterChannelAdapter
      extended by org.jasig.portal.MultithreadedMimeResponseCharacterChannelAdapter
All Implemented Interfaces:
IChannel, ICharacterChannel, IMimeResponse
Direct Known Subclasses:
MultithreadedPrivilegedMimeResponseCharacterChannelAdapter

Deprecated. All IChannel implementations should be migrated to portlets

@Deprecated
public class MultithreadedMimeResponseCharacterChannelAdapter
extends MultithreadedCharacterChannelAdapter
implements IMimeResponse

Internal adapter for a multithreaded character channel that also implements IMimeResponse (capable of using DonwloadWorker)

Version:
$Revision: 19776 $
Author:
Nick Bolton
See Also:
MultithreadedChannelAdapter

Constructor Summary
MultithreadedMimeResponseCharacterChannelAdapter(IMultithreadedCharacterChannel channel, String uid)
          Deprecated.  
 
Method Summary
 void downloadData(OutputStream out)
          Deprecated. Pass the OutputStream object to the download code if it needs special handling (like outputting a Zip file).
 String getContentType()
          Deprecated. Returns the MIME type of the content.
 Map getHeaders()
          Deprecated. Returns a list of header values that can be set in the HttpResponse.
 InputStream getInputStream()
          Deprecated. Returns the MIME content in the form of an input stream.
 String getName()
          Deprecated. Returns the name of the MIME file.
 void reportDownloadError(Exception e)
          Deprecated. Let the channel know that there were problems with the download
 
Methods inherited from class org.jasig.portal.MultithreadedCharacterChannelAdapter
getRuntimeProperties, receiveEvent, renderCharacters, renderXML, setRuntimeData, setStaticData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultithreadedMimeResponseCharacterChannelAdapter

public MultithreadedMimeResponseCharacterChannelAdapter(IMultithreadedCharacterChannel channel,
                                                        String uid)
                                                 throws PortalException
Deprecated. 
Throws:
PortalException
Method Detail

getContentType

public String getContentType()
Deprecated. 
Description copied from interface: IMimeResponse
Returns the MIME type of the content.

Specified by:
getContentType in interface IMimeResponse

getInputStream

public InputStream getInputStream()
                           throws IOException
Deprecated. 
Description copied from interface: IMimeResponse
Returns the MIME content in the form of an input stream. Returns null if the code needs the OutputStream object

Specified by:
getInputStream in interface IMimeResponse
Throws:
IOException

downloadData

public void downloadData(OutputStream out)
                  throws IOException
Deprecated. 
Description copied from interface: IMimeResponse
Pass the OutputStream object to the download code if it needs special handling (like outputting a Zip file).

Specified by:
downloadData in interface IMimeResponse
Throws:
IOException

getName

public String getName()
Deprecated. 
Description copied from interface: IMimeResponse
Returns the name of the MIME file.

Specified by:
getName in interface IMimeResponse

getHeaders

public Map getHeaders()
Deprecated. 
Description copied from interface: IMimeResponse
Returns a list of header values that can be set in the HttpResponse. Returns null if no headers need to be set.

Specified by:
getHeaders in interface IMimeResponse

reportDownloadError

public void reportDownloadError(Exception e)
Deprecated. 
Description copied from interface: IMimeResponse
Let the channel know that there were problems with the download

Specified by:
reportDownloadError in interface IMimeResponse


Copyright © 2010 Jasig. All Rights Reserved.