Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating Apache guacamole in spring boot application

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.

like image 308
Virat Avatar asked Oct 28 '25 05:10

Virat


1 Answers

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

like image 166
cacaocow Avatar answered Oct 30 '25 21:10

cacaocow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!