From 90669232981c4c9ddb974be6ff85b607acf25144 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 26 Nov 2010 19:15:47 -0800 Subject: [PATCH] Config in XML, forgot to add connect servlet to web.xml --- .../guacamole/net/GuacamoleConfiguration.java | 16 +++++++-------- .../guacamole/net/GuacamoleSession.java | 4 ++-- guacamole/web-client/web/META-INF/context.xml | 8 +++++++- guacamole/web-client/web/WEB-INF/web.xml | 20 ++++++++++++++----- 4 files changed, 32 insertions(+), 16 deletions(-) diff --git a/guacamole/web-client/src/net/sourceforge/guacamole/net/GuacamoleConfiguration.java b/guacamole/web-client/src/net/sourceforge/guacamole/net/GuacamoleConfiguration.java index b357bb57c..8de96acdb 100644 --- a/guacamole/web-client/src/net/sourceforge/guacamole/net/GuacamoleConfiguration.java +++ b/guacamole/web-client/src/net/sourceforge/guacamole/net/GuacamoleConfiguration.java @@ -24,23 +24,23 @@ import net.sourceforge.guacamole.GuacamoleException; public class GuacamoleConfiguration extends Configuration { - private String hostname; - private int port; + private String guacd_hostname; + private int guacd_port; public GuacamoleConfiguration(ServletContext context) throws GuacamoleException { super(context); - hostname = context.getInitParameter("hostname"); - port = readIntParameter("port", null); + guacd_hostname = context.getInitParameter("guacd-hostname"); + guacd_port = readIntParameter("guacd-port", null); } - public int getPort() { - return port; + public int getProxyPort() { + return guacd_port; } - public String getHostname() { - return hostname; + public String getProxyHostname() { + return guacd_hostname; } } diff --git a/guacamole/web-client/src/net/sourceforge/guacamole/net/GuacamoleSession.java b/guacamole/web-client/src/net/sourceforge/guacamole/net/GuacamoleSession.java index b97931d6a..81b3a5636 100644 --- a/guacamole/web-client/src/net/sourceforge/guacamole/net/GuacamoleSession.java +++ b/guacamole/web-client/src/net/sourceforge/guacamole/net/GuacamoleSession.java @@ -96,8 +96,8 @@ public class GuacamoleSession { client = new SessionClient( new GuacamoleClient ( - config.getHostname(), - config.getPort() + config.getProxyHostname(), + config.getProxyPort() ) ); diff --git a/guacamole/web-client/web/META-INF/context.xml b/guacamole/web-client/web/META-INF/context.xml index 5bee3dc30..c63f9b865 100644 --- a/guacamole/web-client/web/META-INF/context.xml +++ b/guacamole/web-client/web/META-INF/context.xml @@ -1,2 +1,8 @@ - + + + + + + + diff --git a/guacamole/web-client/web/WEB-INF/web.xml b/guacamole/web-client/web/WEB-INF/web.xml index e26ab78b9..0be425c7f 100644 --- a/guacamole/web-client/web/WEB-INF/web.xml +++ b/guacamole/web-client/web/WEB-INF/web.xml @@ -17,9 +17,9 @@ along with this program. If not, see . --> - + - + index.html @@ -29,9 +29,19 @@ 30 - + + + Connect servlet. + Connect + net.sourceforge.guacamole.net.tunnel.Connect + + + Connect + /connect + + Outbound servlet. Outbound @@ -41,7 +51,7 @@ Outbound /outbound - + Input servlet. Inbound @@ -51,5 +61,5 @@ Inbound /inbound - +