001    /*
002     * Licensed to the Apache Software Foundation (ASF) under one
003     * or more contributor license agreements.  See the NOTICE file
004     * distributed with this work for additional information
005     * regarding copyright ownership.  The ASF licenses this file
006     * to you under the Apache License, Version 2.0 (the
007     * "License"); you may not use this file except in compliance
008     * with the License.  You may obtain a copy of the License at
009     *
010     *  http://www.apache.org/licenses/LICENSE-2.0
011     *
012     * Unless required by applicable law or agreed to in writing,
013     * software distributed under the License is distributed on an
014     * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015     * KIND, either express or implied.  See the License for the
016     * specific language governing permissions and limitations
017     * under the License.
018     */
019    
020    
021    package org.apache.geronimo.cli.deployer;
022    
023    /**
024     * @version $Rev: 706640 $ $Date: 2008-10-21 14:44:05 +0000 (Tue, 21 Oct 2008) $
025     */
026    public class ConnectionParamsImpl implements ConnectionParams {
027    
028        private String uri;
029        private String host;
030        private Integer port;
031        private String driver;
032        private String user;
033        private String password;
034        private boolean syserr;
035        private boolean verbose;
036        private boolean offline;
037        private boolean secure;
038    
039    
040        public ConnectionParamsImpl(String uri, String host, Integer port, String driver, String user, String password, boolean syserr, boolean verbose, boolean offline) {
041            this(uri, host, port, driver, user, password, syserr, verbose, offline, false);
042        }
043        
044        public ConnectionParamsImpl(String uri, String host, Integer port, String driver, String user, String password, boolean syserr, boolean verbose, boolean offline, boolean secure) {
045            this.uri = uri;
046            this.host = host;
047            this.port = port;
048            this.driver = driver;
049            this.user = user;
050            this.password = password;
051            this.syserr = syserr;
052            this.verbose = verbose;
053            this.offline = offline;
054            this.secure = secure;
055        }
056    
057        public ConnectionParamsImpl() {
058        }
059    
060        public String getURI() {
061            return uri;
062        }
063    
064        public void setURI(String uri) {
065            this.uri = uri;
066        }
067    
068        public String getHost() {
069            return host;
070        }
071    
072        public void setHost(String host) {
073            this.host = host;
074        }
075    
076        public Integer getPort() {
077            return port;
078        }
079    
080        public void setPort(Integer port) {
081            this.port = port;
082        }
083    
084        public String getDriver() {
085            return driver;
086        }
087    
088        public void setDriver(String driver) {
089            this.driver = driver;
090        }
091    
092        public String getUser() {
093            return user;
094        }
095    
096        public void setUser(String user) {
097            this.user = user;
098        }
099    
100        public String getPassword() {
101            return password;
102        }
103    
104        public void setPassword(String password) {
105            this.password = password;
106        }
107    
108        public boolean isSyserr() {
109            return syserr;
110        }
111    
112        public void setSyserr(boolean syserr) {
113            this.syserr = syserr;
114        }
115    
116        public boolean isVerbose() {
117            return verbose;
118        }
119    
120        public void setVerbose(boolean verbose) {
121            this.verbose = verbose;
122        }
123    
124        public boolean isOffline() {
125            return offline;
126        }
127    
128        public void setOffline(boolean offline) {
129            this.offline = offline;
130        }
131        
132        public boolean isSecure() {
133            return secure;
134        }
135    
136        public void setSecure(boolean secure) {
137            this.secure = secure;
138        }
139    }