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: // Servlet classes
17:
18: import javax.servlet.ServletConfig;
19: import javax.servlet.ServletException;
20:
21: import com.iplanet.am.console.base.ConsoleServletBase;
22: import com.iplanet.jato.ModelManager;
23: import com.iplanet.jato.ModelTypeMap;
24: import com.iplanet.jato.RequestContext;
25: import com.iplanet.jato.RequestContextImpl;
26:
27: public class NetletAdminServletBase extends ConsoleServletBase {
28:
29: private static ModelTypeMap MODEL_TYPE_MAP;
30:
31: public NetletAdminServletBase() {
32: super ();
33: }
34:
35: public void init(ServletConfig config) throws ServletException {
36: super .init(config);
37: MODEL_TYPE_MAP = new ModelTypeMapImpl();
38: // MODEL_TYPE_MAP=(ModelTypeMap)new ModelTypeMapBase();
39: }
40:
41: protected void initializeRequestContext(
42: RequestContext requestContext) {
43: super .initializeRequestContext(requestContext);
44: ModelManager modelManager = new NetletAdminModelManager(
45: requestContext, MODEL_TYPE_MAP);
46: ((RequestContextImpl) requestContext)
47: .setModelManager(modelManager);
48: }
49: }
|