KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > latka > jelly > SuiteSettings


1 /*
2  * Copyright 1999-2001,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.commons.latka.jelly;
18
19 /**
20  *
21  * @author Morgan Delagrange
22  */

23 public class SuiteSettings {
24         
25     protected String JavaDoc _defaultHost = null;
26     protected int _defaultPort = -1;
27     protected String JavaDoc _defaultProxyHost = null;
28     protected int _defaultProxyPort = -1;
29
30     /** Creates a new instance of SuiteSettings */
31     public SuiteSettings(String JavaDoc defaultHost, int defaultPort,
32                          String JavaDoc defaultProxyHost, int defaultProxyPort) {
33         _defaultHost = defaultHost;
34         _defaultPort = defaultPort;
35         _defaultProxyHost = defaultProxyHost;
36         _defaultProxyPort = defaultProxyPort;
37     }
38     
39     /**
40      * defaultHost
41      *
42      * @return defaultHost for all requests
43      */

44     public String JavaDoc getDefaultHost() {
45         return _defaultHost;
46     }
47     
48     /**
49      * defaultPort
50      *
51      * @return defaultPort for all requests
52      */

53     public int getDefaultPort() {
54         return _defaultPort;
55     }
56
57
58     /**
59      * defaultProxyHost
60      *
61      * @return defaultProxyHost for all requests
62      */

63     public String JavaDoc getDefaultProxyHost() {
64         return _defaultProxyHost;
65     }
66
67     /**
68      * defaultProxyPort
69      *
70      * @return defaultProxyPort for all requests
71      */

72     public int getDefaultProxyPort() {
73         return _defaultProxyPort;
74     }
75
76 }
77
Popular Tags