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 channel that is also cacheable and implements IMimeResponse (capable
10: * 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 MultithreadedPrivilegedCacheableMimeResponseChannelAdapter
16: extends MultithreadedCacheableMimeResponseChannelAdapter
17: implements IPrivilegedChannel {
18: public MultithreadedPrivilegedCacheableMimeResponseChannelAdapter(
19: IMultithreadedChannel channel, String uid)
20: throws PortalException {
21: super (channel, uid);
22: if (!(channel instanceof IMultithreadedMimeResponse)) {
23: throw (new PortalException(
24: "MultithreadedPrivilegedCacheableMimeResponseChannelAdapter: Cannot adapt "
25: + channel.getClass().getName()));
26: }
27: }
28:
29: public void setPortalControlStructures(PortalControlStructures pcs)
30: throws PortalException {
31: ((IMultithreadedPrivileged) channel)
32: .setPortalControlStructures(pcs, uid);
33: }
34: }
|