Route all instructions through monitoring reader.

This commit is contained in:
Michael Jumper
2014-03-02 14:53:59 -08:00
parent a11103ce4c
commit 893a3f0d84

View File

@@ -29,6 +29,7 @@ import javax.servlet.http.HttpSession;
import org.glyptodon.guacamole.GuacamoleClientException;
import org.glyptodon.guacamole.GuacamoleException;
import org.glyptodon.guacamole.GuacamoleSecurityException;
import org.glyptodon.guacamole.io.GuacamoleReader;
import org.glyptodon.guacamole.net.GuacamoleSocket;
import org.glyptodon.guacamole.net.GuacamoleTunnel;
import org.glyptodon.guacamole.net.auth.Connection;
@@ -323,6 +324,12 @@ public class BasicTunnelRequestUtility {
// Associate socket with tunnel
GuacamoleTunnel tunnel = new GuacamoleTunnel(socket) {
@Override
public GuacamoleReader acquireReader() {
// Monitor instructions which pertain to server-side events
return new MonitoringGuacamoleReader(listeners, super.acquireReader());
}
@Override
public void close() throws GuacamoleException {