Added version variable to build script and index.html. Mouse over on bowl now reveals...
[guacamole.git] / src / net / sourceforge / guacamole / vnc / VNCConfiguration.java
1
2 package net.sourceforge.guacamole.vnc;
3
4 /*
5  *  Guacamole - Pure JavaScript/HTML VNC Client
6  *  Copyright (C) 2010  Michael Jumper
7  *
8  *  This program is free software: you can redistribute it and/or modify
9  *  it under the terms of the GNU Affero General Public License as published by
10  *  the Free Software Foundation, either version 3 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU Affero General Public License for more details.
17  *
18  *  You should have received a copy of the GNU Affero General Public License
19  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
20  */
21
22 import net.sourceforge.guacamole.net.Configuration;
23 import net.sourceforge.guacamole.GuacamoleException;
24 import javax.servlet.ServletContext;
25
26 public class VNCConfiguration extends Configuration {
27
28     private String hostname;
29     private int port;
30     private String password;
31     private int bpp;
32
33     public VNCConfiguration(ServletContext context) throws GuacamoleException {
34
35         super(context);
36
37         hostname       = readParameter("host", null);
38         port           = readIntParameter("port", null);
39         password  = context.getInitParameter("password");
40         bpp = readIntParameter("bpp", 24, 8, 16, 24);
41
42     }
43
44     public int getBPP() {
45         return bpp;
46     }
47
48     public String getPassword() {
49         return password;
50     }
51
52     public String getHostname() {
53         return hostname;
54     }
55
56     public int getPort() {
57         return port;
58     }
59
60 }