01: /*
02: * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.subscriptions.admin;
07:
08: import com.iplanet.jato.RequestContext;
09: import com.iplanet.jato.RequestContextImpl;
10: import com.iplanet.jato.ViewBeanManager;
11: import com.iplanet.jato.ApplicationServletBase;
12:
13: import javax.servlet.http.*;
14: import javax.servlet.ServletException;
15:
16: import com.iplanet.am.console.base.ConsoleServletBase;
17:
18: /**
19: * This Servlet class (conforming to JATO framework) is used for all
20: * Identity Server admin console requests to the Subscriptions Service.
21: *
22: */
23: public class SubscriptionsAdminServlet extends ConsoleServletBase {
24:
25: public static final String DEFAULT_MODULE_URL = "../subsadmin";
26: public static String PACKAGE_NAME = getPackageName(SubscriptionsAdminServlet.class
27: .getName());
28:
29: /*
30: * Initialize the RequestContext (overrides com.iplanet.jato.ApplicationServletBase)
31: *
32: * @param requestContext RequestContext
33: */
34: protected void initializeRequestContext(
35: RequestContext requestContext) {
36: super .initializeRequestContext(requestContext);
37:
38: ViewBeanManager viewBeanManager = new ViewBeanManager(
39: requestContext, PACKAGE_NAME);
40: ((RequestContextImpl) requestContext)
41: .setViewBeanManager(viewBeanManager);
42: }
43:
44: /*
45: * Returns the model URL
46: *
47: * @return the module URL as a String object.
48: */
49: public String getModuleURL() {
50: return DEFAULT_MODULE_URL;
51: }
52:
53: /*
54: * Overriden to store servlet config in request attribute
55: */
56: protected void service(HttpServletRequest req,
57: HttpServletResponse res) throws ServletException,
58: java.io.IOException {
59:
60: super.service(req, res);
61: }
62: }
|