01: /* Copyright 2003 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal;
07:
08: /**
09: * Internal adapter for a multithreaded privileged character channel that is
10: * also cacheable and implements IMimeResponse (capable of using DonwloadWorker)
11: * @author <a href="mailto:nbolton@unicon.net">Nick Bolton</a>
12: * @version $Revision: 34812 $
13: * @see MultithreadedPrivilegedCacheableChannelAdapter
14: */
15: public class MultithreadedPrivilegedCacheableMimeResponseCharacterChannelAdapter
16: extends
17: MultithreadedCacheableMimeResponseCharacterChannelAdapter
18: implements IPrivilegedChannel {
19: public MultithreadedPrivilegedCacheableMimeResponseCharacterChannelAdapter(
20: IMultithreadedCharacterChannel channel, String uid)
21: throws PortalException {
22: super (channel, uid);
23: if (!(channel instanceof IMultithreadedMimeResponse)) {
24: throw (new PortalException(
25: "MultithreadedPrivilegedCacheableMimeResponseChannelAdapter: Cannot adapt "
26: + channel.getClass().getName()));
27: }
28: }
29:
30: public void setPortalControlStructures(PortalControlStructures pcs)
31: throws PortalException {
32: ((IMultithreadedPrivileged) channel)
33: .setPortalControlStructures(pcs, uid);
34: }
35: }
|