001    /*
002     * Copyright 1999-2001,2004 The Apache Software Foundation.
003     * 
004     * Licensed under the Apache License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     *      http://www.apache.org/licenses/LICENSE-2.0
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    
017    package org.apache.commons.latka.jelly;
018    
019    /**
020     *
021     * @author  Morgan Delagrange
022     */
023    public class SuiteSettings {
024            
025        protected String _defaultHost = null;
026        protected int _defaultPort = -1;
027        protected String _defaultProxyHost = null;
028        protected int _defaultProxyPort = -1;
029    
030        /** Creates a new instance of SuiteSettings */
031        public SuiteSettings(String defaultHost, int defaultPort,
032                             String defaultProxyHost, int defaultProxyPort) {
033            _defaultHost = defaultHost;
034            _defaultPort = defaultPort;
035            _defaultProxyHost = defaultProxyHost;
036            _defaultProxyPort = defaultProxyPort;
037        }
038        
039        /**
040         * defaultHost
041         * 
042         * @return defaultHost for all requests
043         */
044        public String getDefaultHost() {
045            return _defaultHost;
046        }
047        
048        /**
049         * defaultPort
050         * 
051         * @return defaultPort for all requests
052         */
053        public int getDefaultPort() {
054            return _defaultPort;
055        }
056    
057    
058        /**
059         * defaultProxyHost
060         * 
061         * @return defaultProxyHost for all requests
062         */
063        public String getDefaultProxyHost() {
064            return _defaultProxyHost;
065        }
066    
067        /**
068         * defaultProxyPort
069         * 
070         * @return defaultProxyPort for all requests
071         */
072        public int getDefaultProxyPort() {
073            return _defaultProxyPort;
074        }
075    
076    }