001 /** 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017 package org.apache.geronimo.tomcat; 018 019 import java.util.List; 020 import java.util.Map; 021 import java.util.Set; 022 023 import javax.transaction.UserTransaction; 024 025 import org.apache.InstanceManager; 026 import org.apache.catalina.Context; 027 import org.apache.catalina.Manager; 028 import org.apache.catalina.Realm; 029 import org.apache.catalina.Valve; 030 import org.apache.catalina.ha.CatalinaCluster; 031 import org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator; 032 import org.apache.geronimo.kernel.Kernel; 033 import org.apache.geronimo.tomcat.util.SecurityHolder; 034 035 /** 036 * @version $Rev: 706640 $ $Date: 2008-10-21 14:44:05 +0000 (Tue, 21 Oct 2008) $ 037 */ 038 public interface TomcatContext { 039 String getContextPath(); 040 041 void setContext(Context ctx); 042 043 Context getContext(); 044 045 String getDocBase(); 046 047 SecurityHolder getSecurityHolder(); 048 049 String getVirtualServer(); 050 051 ClassLoader getClassLoader(); 052 053 UserTransaction getUserTransaction(); 054 055 javax.naming.Context getJndiContext(); 056 057 Kernel getKernel(); 058 059 Set getApplicationManagedSecurityResources(); 060 061 TrackedConnectionAssociator getTrackedConnectionAssociator(); 062 063 Set getUnshareableResources(); 064 065 Realm getRealm(); 066 067 Valve getClusteredValve(); 068 069 List getValveChain(); 070 071 List getLifecycleListenerChain(); 072 073 CatalinaCluster getCluster(); 074 075 Manager getManager(); 076 077 boolean isCrossContext(); 078 079 String getWorkDir(); 080 081 boolean isDisableCookies(); 082 083 Map getWebServices(); 084 085 InstanceManager getInstanceManager(); 086 }