01: /**
02: * Copyright 2002 Sun Microsystems, Inc. All
03: * rights reserved. Use of this product is subject
04: * to license terms. Federal Acquisitions:
05: * Commercial Software -- Government Users
06: * Subject to Standard License Terms and
07: * Conditions.
08: *
09: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
10: * are trademarks or registered trademarks of Sun Microsystems,
11: * Inc. in the United States and other countries.
12: *
13: * @ Author Francis Sujai
14: */package com.sun.portal.proxylet.admin;
15:
16: // JDK classes
17:
18: import com.iplanet.jato.RequestContext;
19: import com.iplanet.jato.RequestContextImpl;
20: import com.iplanet.jato.ViewBeanManager;
21: import com.iplanet.jato.view.ViewBean;
22:
23: public class ProxyletAdminServlet extends ProxyletAdminServletBase {
24:
25: public static final String DEFAULT_MODULE_URL = "../proxyletadmin";
26: public static String PACKAGE_NAME = getPackageName(ProxyletAdminServlet.class
27: .getName());
28:
29: protected void initializeRequestContext(
30: RequestContext requestContext) {
31: super .initializeRequestContext(requestContext);
32:
33: ViewBeanManager viewBeanManager = new ViewBeanManager(
34: requestContext, PACKAGE_NAME);
35:
36: ((RequestContextImpl) requestContext)
37: .setViewBeanManager(viewBeanManager);
38: }
39:
40: /**
41: * Returns the model URL.
42: * @return the module URL as a String object.
43: */
44:
45: public String getModuleURL() {
46: return DEFAULT_MODULE_URL;
47: }
48: }
|