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: // Servlet classes
17:
18: import com.iplanet.am.console.base.ConsoleServletBase;
19: import com.iplanet.jato.ModelManager;
20: import com.iplanet.jato.ModelTypeMap;
21: import com.iplanet.jato.RequestContext;
22: import com.iplanet.jato.RequestContextImpl;
23:
24: import javax.servlet.ServletConfig;
25: import javax.servlet.ServletException;
26:
27: public class ProxyletAdminServletBase extends ConsoleServletBase {
28:
29: private static ModelTypeMap MODEL_TYPE_MAP;
30:
31: public ProxyletAdminServletBase() {
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 ProxyletAdminModelManager(
45: requestContext, MODEL_TYPE_MAP);
46: ((RequestContextImpl) requestContext)
47: .setModelManager(modelManager);
48: }
49: }
|