mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
Renamed and reformatted example, removed unapplicable license terms.
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
|
|
||||||
package net.sourceforge.guacamole.net.example;
|
|
||||||
|
|
||||||
import javax.servlet.http.HttpServletRequest;
|
import javax.servlet.http.HttpServletRequest;
|
||||||
import javax.servlet.http.HttpSession;
|
import javax.servlet.http.HttpSession;
|
||||||
import net.sourceforge.guacamole.GuacamoleException;
|
import net.sourceforge.guacamole.GuacamoleException;
|
||||||
@@ -13,33 +11,19 @@ import net.sourceforge.guacamole.protocol.ConfiguredGuacamoleSocket;
|
|||||||
import net.sourceforge.guacamole.servlet.GuacamoleSession;
|
import net.sourceforge.guacamole.servlet.GuacamoleSession;
|
||||||
import net.sourceforge.guacamole.servlet.GuacamoleTunnelServlet;
|
import net.sourceforge.guacamole.servlet.GuacamoleTunnelServlet;
|
||||||
|
|
||||||
/*
|
public class ExampleTunnelServlet extends GuacamoleTunnelServlet {
|
||||||
* Guacamole - Clientless Remote Desktop
|
|
||||||
* Copyright (C) 2010 Michael Jumper
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU Affero General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU Affero General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class DummyGuacamoleTunnelServlet extends GuacamoleTunnelServlet {
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected GuacamoleTunnel doConnect(HttpServletRequest request) throws GuacamoleException {
|
protected GuacamoleTunnel doConnect(HttpServletRequest request)
|
||||||
|
throws GuacamoleException {
|
||||||
|
|
||||||
HttpSession httpSession = request.getSession(true);
|
HttpSession httpSession = request.getSession(true);
|
||||||
|
|
||||||
String hostname = GuacamoleProperties.getProperty(GuacamoleProperties.GUACD_HOSTNAME);
|
String hostname = GuacamoleProperties.getProperty(
|
||||||
int port = GuacamoleProperties.getProperty(GuacamoleProperties.GUACD_PORT);
|
GuacamoleProperties.GUACD_HOSTNAME);
|
||||||
|
|
||||||
|
int port = GuacamoleProperties.getProperty(
|
||||||
|
GuacamoleProperties.GUACD_PORT);
|
||||||
|
|
||||||
GuacamoleConfiguration config = new GuacamoleConfiguration();
|
GuacamoleConfiguration config = new GuacamoleConfiguration();
|
||||||
config.setProtocol("vnc");
|
config.setProtocol("vnc");
|
Reference in New Issue
Block a user