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: Anurag Gupta
14: */package com.sun.portal.netfile.admin;
15:
16: // iPlanet JATO classes
17: import com.iplanet.jato.RequestContext;
18: import com.sun.portal.log.common.PortalLogger;
19: import com.iplanet.jato.RequestContextImpl;
20: import com.iplanet.jato.ViewBeanManager;
21:
22: public class NetFileConsoleServlet extends NetFileConsoleServletBase {
23:
24: public static final String DEFAULT_MODULE_URL = "../netfileadmin";
25: public static String PACKAGE_NAME = getPackageName(NetFileConsoleServlet.class
26: .getName());
27:
28: public NetFileConsoleServlet() {
29: super ();
30: }
31:
32: protected void initializeRequestContext(
33: RequestContext requestContext) {
34: super .initializeRequestContext(requestContext);
35:
36: /** Set a view bean manager in the request context. This must be
37: * done at the module level because the view bean manager is
38: * module specifc.
39: */
40: ViewBeanManager viewBeanManager = new ViewBeanManager(
41: requestContext, PACKAGE_NAME);
42: ((RequestContextImpl) requestContext)
43: .setViewBeanManager(viewBeanManager);
44:
45: }
46:
47: public String getModuleURL() {
48: return DEFAULT_MODULE_URL;
49: }
50: }
|