1 /**
2 *
3 * Copyright 2004, 2005 The Apache Software Foundation or its licensors, as applicable.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * 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;
21
22 import org.apache.geronimo.kernel.management.State;
23
24 public class ConnectorInfo implements Serializable {
25 private String description;
26 private String displayName;
27 private String connectorURI;
28 private String protocol;
29 private int port;
30 private int state;
31
32 public String getDescription() {
33 return description;
34 }
35
36 public void setDescription(String description) {
37 this.description = description;
38 }
39
40 public String getProtocol() {
41 return protocol;
42 }
43
44 public void setProtocol(String protocol) {
45 this.protocol = protocol;
46 }
47
48 public String getConnectorURI() {
49 return connectorURI;
50 }
51
52 public String getDisplayName() {
53 return displayName;
54 }
55
56 public void setConnectorURI(String connectorURI) {
57 this.connectorURI = connectorURI;
58 }
59
60 public void setDisplayName(String 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 getStateName() {
81 return State.toString(state);
82 }
83
84 }