1 /** 2 * 3 * Copyright 2003-2004 The Apache Software Foundation 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * 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 */ 17 package org.apache.geronimo.tomcat; 18 19 import java.util.List; 20 import java.util.Map; 21 import java.util.Set; 22 23 import javax.transaction.UserTransaction; 24 25 import org.apache.catalina.Context; 26 import org.apache.catalina.Manager; 27 import org.apache.catalina.Realm; 28 import org.apache.catalina.cluster.CatalinaCluster; 29 import org.apache.geronimo.kernel.Kernel; 30 import org.apache.geronimo.tomcat.util.SecurityHolder; 31 import org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator; 32 33 /** 34 * @version $Rev: 430508 $ $Date: 2006-08-10 12:56:47 -0700 (Thu, 10 Aug 2006) $ 35 */ 36 public interface TomcatContext { 37 38 public String getContextPath(); 39 40 public void setContext(Context ctx); 41 42 public Context getContext(); 43 44 public String getDocBase(); 45 46 public SecurityHolder getSecurityHolder(); 47 48 public String getVirtualServer(); 49 50 public ClassLoader getClassLoader(); 51 52 public UserTransaction getUserTransaction(); 53 54 public Map getComponentContext(); 55 56 public Kernel getKernel(); 57 58 public Set getApplicationManagedSecurityResources(); 59 60 public TrackedConnectionAssociator getTrackedConnectionAssociator(); 61 62 public Set getUnshareableResources(); 63 64 public Realm getRealm(); 65 66 public List getValveChain(); 67 68 public CatalinaCluster getCluster(); 69 70 public Manager getManager(); 71 72 public boolean isCrossContext(); 73 74 public boolean isDisableCookies(); 75 76 public Map getWebServices(); 77 }