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.catalina.Context;
026 import org.apache.catalina.Manager;
027 import org.apache.catalina.Realm;
028 import org.apache.InstanceManager;
029 import org.apache.catalina.ha.CatalinaCluster;
030 import org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator;
031 import org.apache.geronimo.kernel.Kernel;
032 import org.apache.geronimo.tomcat.util.SecurityHolder;
033 import org.apache.geronimo.security.credentialstore.CredentialStore;
034
035 /**
036 * @version $Rev: 551692 $ $Date: 2007-06-28 16:36:09 -0400 (Thu, 28 Jun 2007) $
037 */
038 public interface TomcatContext {
039
040 public String getContextPath();
041
042 public void setContext(Context ctx);
043
044 public Context getContext();
045
046 public String getDocBase();
047
048 public SecurityHolder getSecurityHolder();
049
050 public String getVirtualServer();
051
052 public ClassLoader getClassLoader();
053
054 public UserTransaction getUserTransaction();
055
056 public javax.naming.Context getJndiContext();
057
058 public Kernel getKernel();
059
060 public Set getApplicationManagedSecurityResources();
061
062 public TrackedConnectionAssociator getTrackedConnectionAssociator();
063
064 public Set getUnshareableResources();
065
066 public Realm getRealm();
067
068 public List getValveChain();
069
070 public List getLifecycleListenerChain();
071
072 public CatalinaCluster getCluster();
073
074 public Manager getManager();
075
076 public boolean isCrossContext();
077
078 public boolean isDisableCookies();
079
080 public Map getWebServices();
081
082 public InstanceManager getInstanceManager();
083
084 }