01: /*
02: * Copyright 2001 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.search.rdmserver;
07:
08: import com.sun.portal.search.rdm.*;
09: import com.sun.portal.search.util.*;
10:
11: import java.util.*;
12: import java.text.*;
13: import javax.servlet.*;
14:
15: /**
16: * Implements servlet specific RDM container functions
17: */
18: public class RDMServletContext extends RDMContext {
19:
20: ServletContext svltcontext;
21:
22: /** Creates new RDMServletContext */
23: public RDMServletContext(ServletConfig svltconfig) throws Exception {
24: super (new RDMConfig(svltconfig.getServletContext()
25: .getInitParameter("server.root")));
26: svltcontext = svltconfig.getServletContext();
27: }
28:
29: public void log(String msg) {
30: svltcontext.log(msg);
31: }
32:
33: public void log(String msg, Exception e) {
34: svltcontext.log(msg, e);
35: }
36:
37: }
|