01: /* Copyright 2001 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: import javax.servlet.http.HttpServletResponse;
09:
10: /**
11: * @author Eric Dalquist <a href="mailto:edalquist@unicon.net">edalquist@unicon.net </a>
12: * @version $Revision: 34818 $
13: */
14: public class MultithreadedPrivilegedCacheableDirectResponseCharacterChannelAdapter
15: extends MultithreadedPrivilegedCacheableCharacterChannelAdapter
16: implements IDirectResponse {
17:
18: public MultithreadedPrivilegedCacheableDirectResponseCharacterChannelAdapter(
19: IMultithreadedCharacterChannel channel, String uid)
20: throws PortalException {
21:
22: super (channel, uid);
23:
24: if (!(channel instanceof IMultithreadedDirectResponse)) {
25: throw (new PortalException(
26: "MultithreadedPrivilegedCacheableDirectResponseCharacterChannelAdapter: Cannot adapt "
27: + channel.getClass().getName()));
28: }
29: }
30:
31: /**
32: * @see org.jasig.portal.IMultithreadedDirectResponse#setResponse(String, javax.servlet.http.HttpServletResponse)
33: */
34: public void setResponse(HttpServletResponse response) {
35: ((IMultithreadedDirectResponse) channel).setResponse(uid,
36: response);
37: }
38: }
|