01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.geronimo.jetty6;
17:
18: import java.util.Map;
19: import java.util.Set;
20:
21: import javax.security.auth.Subject;
22:
23: import org.apache.geronimo.gbean.GBeanInfo;
24: import org.apache.geronimo.gbean.GBeanInfoBuilder;
25: import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
26: import org.apache.geronimo.security.deploy.SubjectInfo;
27: import org.mortbay.jetty.servlet.ServletHolder;
28:
29: /**
30: * @version $Rev: 556217 $ $Date: 2007-07-13 20:39:06 -0700 (Fri, 13 Jul 2007) $
31: */
32: public class JettyDefaultServletHolder extends JettyServletHolder {
33:
34: public JettyDefaultServletHolder() {
35: }
36:
37: public JettyDefaultServletHolder(String objectName,
38: String servletName, String servletClassName,
39: String jspFile, Map initParams, Integer loadOnStartup,
40: Set<String> servletMappings, String runAsRole,
41: JettyServletRegistration context) throws Exception {
42: super (objectName, servletName, servletClassName, jspFile,
43: initParams, loadOnStartup, servletMappings, runAsRole,
44: context);
45: }
46:
47: public static final GBeanInfo GBEAN_INFO;
48:
49: static {
50: GBeanInfoBuilder infoBuilder = GBeanInfoBuilder.createStatic(
51: JettyDefaultServletHolder.class,
52: JettyServletHolder.GBEAN_INFO,
53: NameFactory.SERVLET_TEMPLATE);
54:
55: GBEAN_INFO = infoBuilder.getBeanInfo();
56: }
57:
58: public static GBeanInfo getGBeanInfo() {
59: return GBEAN_INFO;
60: }
61:
62: }
|