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 Bhavanishankar
14: */package com.sun.portal.netlet.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:
22: public class NetletAdminServlet extends NetletAdminServletBase {
23:
24: public static final String DEFAULT_MODULE_URL = "../netletadmin";
25: public static String PACKAGE_NAME = getPackageName(NetletAdminServlet.class
26: .getName());
27:
28: protected void initializeRequestContext(
29: RequestContext requestContext) {
30: super .initializeRequestContext(requestContext);
31:
32: ViewBeanManager viewBeanManager = new ViewBeanManager(
33: requestContext, PACKAGE_NAME);
34:
35: ((RequestContextImpl) requestContext)
36: .setViewBeanManager(viewBeanManager);
37: }
38:
39: /**
40: * Returns the model URL.
41: * @return the module URL as a String object.
42: */
43:
44: public String getModuleURL() {
45: return DEFAULT_MODULE_URL;
46: }
47: }
|