001    /**
002     *  Licensed to the Apache Software Foundation (ASF) under one or more
003     *  contributor license agreements.  See the NOTICE file distributed with
004     *  this work for additional information regarding copyright ownership.
005     *  The ASF licenses this file to You under the Apache License, Version 2.0
006     *  (the "License"); you may not use this file except in compliance with
007     *  the License.  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    
018    package org.apache.geronimo.console.webmanager;
019    
020    import java.io.Serializable;
021    
022    import org.apache.geronimo.kernel.management.State;
023    
024    public class ConnectorInfo implements Serializable {
025        private String description;
026        private String uniqueName;
027        private String connectorURI;
028        private String protocol;
029        private int port;
030        private int state;
031    
032        public String getDescription() {
033            return description;
034        }
035    
036        public void setDescription(String description) {
037            this.description = description;
038        }
039    
040        public String getProtocol() {
041            return protocol;
042        }
043    
044        public void setProtocol(String protocol) {
045            this.protocol = protocol;
046        }
047    
048        public String getConnectorURI() {
049            return connectorURI;
050        }
051    
052        public String getUniqueName() {
053            return uniqueName;
054        }
055    
056        public void setConnectorURI(String connectorURI) {
057            this.connectorURI = connectorURI;
058        }
059    
060        public void setUniqueName(String uniqueName) {
061            this.uniqueName = uniqueName;
062        }
063    
064        public int getPort() {
065            return port;
066        }
067    
068        public void setPort(int port) {
069            this.port = port;
070        }
071    
072        public int getState() {
073            return state;
074        }
075    
076        public void setState(int state) {
077            this.state = state;
078        }
079    
080        public String getStateName() {
081            return State.toString(state);
082        }
083    
084    }