001    /**
002     *
003     * Copyright 2003-2004 The Apache Software Foundation
004     *
005     *  Licensed under the Apache License, Version 2.0 (the "License");
006     *  you may not use this file except in compliance with the License.
007     *  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.catalina.cluster.CatalinaCluster;
029    import org.apache.geronimo.kernel.Kernel;
030    import org.apache.geronimo.tomcat.util.SecurityHolder;
031    import org.apache.geronimo.connector.outbound.connectiontracking.TrackedConnectionAssociator;
032    
033    /**
034     * @version $Rev: 430508 $ $Date: 2006-08-10 12:56:47 -0700 (Thu, 10 Aug 2006) $
035     */
036    public interface TomcatContext {
037    
038        public String getContextPath();
039    
040        public void setContext(Context ctx);
041    
042        public Context getContext();
043    
044        public String getDocBase();
045    
046        public SecurityHolder getSecurityHolder();
047    
048        public String getVirtualServer();
049    
050        public ClassLoader getClassLoader();
051    
052        public UserTransaction getUserTransaction();
053    
054        public Map getComponentContext();
055    
056        public Kernel getKernel();
057    
058        public Set getApplicationManagedSecurityResources();
059    
060        public TrackedConnectionAssociator getTrackedConnectionAssociator();
061    
062        public Set getUnshareableResources();
063    
064        public Realm getRealm();
065    
066        public List getValveChain();
067    
068        public CatalinaCluster getCluster();
069    
070        public Manager getManager();
071    
072        public boolean isCrossContext();
073    
074        public boolean isDisableCookies();
075    
076        public Map getWebServices();
077    }