01: /**
02: * $Id: PortletWindowChannelURLFactory.java,v 1.4 2004/02/03 20:09:13 mjain Exp $
03: * Copyright 2003 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.providers.portletwindow;
14:
15: import com.sun.portal.container.*;
16: import javax.servlet.http.HttpServletRequest;
17: import javax.servlet.http.HttpServletResponse;
18:
19: public class PortletWindowChannelURLFactory implements
20: ChannelURLFactory {
21:
22: private String _desktopURL = null;
23:
24: public PortletWindowChannelURLFactory(String desktopURL) {
25: _desktopURL = desktopURL;
26: }
27:
28: public ChannelURL createChannelURL() {
29: return new PortletWindowChannelURL(_desktopURL);
30: }
31:
32: public String encodeURL(HttpServletRequest req,
33: HttpServletResponse res, String url) {
34: return res.encodeURL(url);
35: }
36:
37: public String getRenderTemplate() {
38: throw new RuntimeException("Method not implemented");
39: }
40:
41: public String getActionTemplate() {
42: throw new RuntimeException("Method not implemented");
43: }
44:
45: public String getSecurityErrorURL() {
46: throw new RuntimeException("Method not implemented");
47: }
48: }
|