mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Use own function, rather than override service().
This commit is contained in:
@@ -43,16 +43,25 @@ public abstract class GuacamoleTunnelServlet extends HttpServlet {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException {
|
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException {
|
||||||
service(request, response);
|
handleTunnelRequest(request, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException {
|
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException {
|
||||||
service(request, response);
|
handleTunnelRequest(request, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
/**
|
||||||
protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException {
|
* Dispatches every HTTP GET and POST request to the appropriate handler
|
||||||
|
* function based on the query string.
|
||||||
|
*
|
||||||
|
* @param request The HttpServletRequest associated with the GET or POST
|
||||||
|
* request received.
|
||||||
|
* @param response The HttpServletResponse associated with the GET or POST
|
||||||
|
* request received.
|
||||||
|
* @throws ServletException If an error occurs while servicing the request.
|
||||||
|
*/
|
||||||
|
protected void handleTunnelRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user