You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by mj...@apache.org on 2016/03/20 03:15:31 UTC
[21/50] incubator-guacamole-manual git commit: GUAC-1435: Clean up
and correct webapp tutorial with respect to recent changes.
GUAC-1435: Clean up and correct webapp tutorial with respect to recent changes.
Project: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-manual/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-manual/commit/97af0b6c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-manual/tree/97af0b6c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-guacamole-manual/diff/97af0b6c
Branch: refs/heads/master
Commit: 97af0b6ced0aae75d476952e3f8324349a198142
Parents: c8e8088
Author: Michael Jumper <mi...@guac-dev.org>
Authored: Tue Dec 15 15:02:18 2015 -0800
Committer: Michael Jumper <mi...@guac-dev.org>
Committed: Tue Dec 15 15:09:13 2015 -0800
----------------------------------------------------------------------
src/chapters/yourown.xml | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-guacamole-manual/blob/97af0b6c/src/chapters/yourown.xml
----------------------------------------------------------------------
diff --git a/src/chapters/yourown.xml b/src/chapters/yourown.xml
index 8dc9fe0..bf258b8 100644
--- a/src/chapters/yourown.xml
+++ b/src/chapters/yourown.xml
@@ -156,10 +156,13 @@
successfully. However, as the <filename>web.xml</filename> refers to a "welcome
file" called <filename>index.html</filename> (which will ultimately contain our
client), we need to put this in place so the servlet container will have something
- to serve. For now, this can be anything - we will replace it later:</para>
+ to serve. This file, as well as any other future static files, belongs within
+ <filename>src/main/webapp</filename>.</para>
+ <para>For now, this file can contain anything, since the other parts of our
+ Guacamole-driven web application are not written yet. It is a placeholder which we
+ will replace later:</para>
<informalexample>
<programlisting><!DOCTYPE HTML>
-
<html>
<head>
@@ -167,9 +170,7 @@
</head>
<body>
-
<p>Hello World</p>
-
</body>
</html></programlisting>
@@ -355,14 +356,14 @@
<para>Create a new file, <filename>TutorialGuacamoleTunnelServlet.java</filename>,
defining a basic implementation of a tunnel servlet class:</para>
<informalexample>
- <programlisting>
-package org.glyptodon.guacamole.net.example;
+ <programlisting>package org.glyptodon.guacamole.net.example;
import javax.servlet.http.HttpServletRequest;
import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.net.GuacamoleSocket;
import org.glyptodon.guacamole.net.GuacamoleTunnel;
import org.glyptodon.guacamole.net.InetGuacamoleSocket;
+import org.glyptodon.guacamole.net.SimpleGuacamoleTunnel;
import org.glyptodon.guacamole.protocol.ConfiguredGuacamoleSocket;
import org.glyptodon.guacamole.protocol.GuacamoleConfiguration;
import org.glyptodon.guacamole.servlet.GuacamoleHTTPTunnelServlet;
@@ -388,14 +389,14 @@ public class TutorialGuacamoleTunnelServlet
);
// Return a new tunnel which uses the connected socket
- return new GuacamoleTunnel(socket);;
+ return new SimpleGuacamoleTunnel(socket);;
}
}</programlisting>
</informalexample>
<para>Place this file in the
- <filename>src/main/java/net/sourceforge/guacamole/net/example</filename>
+ <filename>src/main/java/org/glyptodon/guacamole/net/example</filename>
subdirectory of the project. The initial part of this subdirectory,
<filename>src/main/java</filename>, is the path required by Maven, while the
rest is the directory required by Java based on the package associated with the
@@ -496,8 +497,7 @@ public class TutorialGuacamoleTunnelServlet
their corresponding input events, calling whichever function of the Guacamole client
is appropriate to send the input event through the tunnel to guacd:</para>
<informalexample>
- <programlisting>
- ...
+ <programlisting> ...
<!-- Init -->
<script type="text/javascript"> /* <![CDATA[ */
@@ -524,7 +524,9 @@ public class TutorialGuacamoleTunnelServlet
guac.sendKeyEvent(0, keysym);
};
- /* ]]> */ </script></programlisting>
+ /* ]]> */ </script>
+
+ ...</programlisting>
</informalexample>
</section>
</section>