I came across a project Apache-Guacamole which helps you connect to remote computers through a web browser. I am trying to integrate it to a spring-boot application, but unable to do so. 
The documentation is quite complex to understand. So, can anybody provides a way to implement it. I have been trying this from a week, but unable to finish it.
I found one servlet class online, but it is not working.
Any help will be appreciated. Please guide me.
Thank you.
It is actually quite simple. First implement the example servlet from the official manual
Then annotate the servlet class as @RestController (@Controller might work too) and then override the handler method and set the url mapping.
@Override
@RequestMapping(path = "tunnel", method = { RequestMethod.POST, RequestMethod.GET })
protected void handleTunnelRequest(HttpServletRequest request,
        HttpServletResponse response) throws ServletException {
    super.handleTunnelRequest(request, response);
}
Then you can use the endpoint as described in the manual
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With