KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > geronimo > console > webmanager > ConnectorInfo


1 /**
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. 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
18 package org.apache.geronimo.console.webmanager;
19
20 import java.io.Serializable JavaDoc;
21
22 import org.apache.geronimo.kernel.management.State;
23
24 public class ConnectorInfo implements Serializable JavaDoc {
25     private String JavaDoc description;
26     private String JavaDoc displayName;
27     private String JavaDoc connectorURI;
28     private String JavaDoc protocol;
29     private int port;
30     private int state;
31
32     public String JavaDoc getDescription() {
33         return description;
34     }
35
36     public void setDescription(String JavaDoc description) {
37         this.description = description;
38     }
39
40     public String JavaDoc getProtocol() {
41         return protocol;
42     }
43
44     public void setProtocol(String JavaDoc protocol) {
45         this.protocol = protocol;
46     }
47
48     public String JavaDoc getConnectorURI() {
49         return connectorURI;
50     }
51
52     public String JavaDoc getDisplayName() {
53         return displayName;
54     }
55
56     public void setConnectorURI(String JavaDoc connectorURI) {
57         this.connectorURI = connectorURI;
58     }
59
60     public void setDisplayName(String JavaDoc displayName) {
61         this.displayName = displayName;
62     }
63
64     public int getPort() {
65         return port;
66     }
67
68     public void setPort(int port) {
69         this.port = port;
70     }
71
72     public int getState() {
73         return state;
74     }
75
76     public void setState(int state) {
77         this.state = state;
78     }
79
80     public String JavaDoc getStateName() {
81         return State.toString(state);
82     }
83
84 }
Popular Tags