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.tomcat;
17:
18: import java.util.List;
19: import java.util.Map;
20: import java.util.Set;
21:
22: import javax.transaction.UserTransaction;
23:
24: import org.apache.InstanceManager;
25: import org.apache.catalina.Context;
26: import org.apache.catalina.Manager;
27: import org.apache.catalina.Realm;
28: import org.apache.catalina.Valve;
29: import org.apache.catalina.ha.CatalinaCluster;
30: import org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator;
31: import org.apache.geronimo.kernel.Kernel;
32: import org.apache.geronimo.tomcat.util.SecurityHolder;
33:
34: /**
35: * @version $Rev: 603174 $ $Date: 2007-12-11 00:33:18 -0800 (Tue, 11 Dec 2007) $
36: */
37: public interface TomcatContext {
38: String getContextPath();
39:
40: void setContext(Context ctx);
41:
42: Context getContext();
43:
44: String getDocBase();
45:
46: SecurityHolder getSecurityHolder();
47:
48: String getVirtualServer();
49:
50: ClassLoader getClassLoader();
51:
52: UserTransaction getUserTransaction();
53:
54: javax.naming.Context getJndiContext();
55:
56: Kernel getKernel();
57:
58: Set getApplicationManagedSecurityResources();
59:
60: TrackedConnectionAssociator getTrackedConnectionAssociator();
61:
62: Set getUnshareableResources();
63:
64: Realm getRealm();
65:
66: Valve getClusteredValve();
67:
68: List getValveChain();
69:
70: List getLifecycleListenerChain();
71:
72: CatalinaCluster getCluster();
73:
74: Manager getManager();
75:
76: boolean isCrossContext();
77:
78: String getWorkDir();
79:
80: boolean isDisableCookies();
81:
82: Map getWebServices();
83:
84: InstanceManager getInstanceManager();
85: }
|