public abstract class GuacamoleHTTPTunnelServlet
extends javax.servlet.http.HttpServlet
Constructor and Description |
---|
GuacamoleHTTPTunnelServlet() |
Modifier and Type | Method and Description |
---|---|
protected abstract GuacamoleTunnel |
doConnect(javax.servlet.http.HttpServletRequest request)
Called whenever the JavaScript Guacamole client makes a connection
request.
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doRead(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String tunnelUUID)
Called whenever the JavaScript Guacamole client makes a read request.
|
protected void |
doWrite(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String tunnelUUID)
Called whenever the JavaScript Guacamole client makes a write request.
|
protected void |
handleTunnelRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Dispatches every HTTP GET and POST request to the appropriate handler
function based on the query string.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
javax.servlet.ServletException
protected void handleTunnelRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException
request
- The HttpServletRequest associated with the GET or POST
request received.response
- The HttpServletResponse associated with the GET or POST
request received.javax.servlet.ServletException
- If an error occurs while servicing the request.protected abstract GuacamoleTunnel doConnect(javax.servlet.http.HttpServletRequest request) throws GuacamoleException
request
- The HttpServletRequest associated with the connection
request received. Any parameters specified along with
the connection request can be read from this object.GuacamoleException
- If an error occurs while constructing the
GuacamoleTunnel, or if the conditions
required for connection are not met.protected void doRead(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String tunnelUUID) throws GuacamoleException
request
- The HttpServletRequest associated with the read request
received.response
- The HttpServletResponse associated with the write request
received. Any data to be sent to the client in response
to the write request should be written to the response
body of this HttpServletResponse.tunnelUUID
- The UUID of the tunnel to read from, as specified in
the write request. This tunnel must be attached to
the Guacamole session.GuacamoleException
- If an error occurs while handling the read
request.protected void doWrite(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String tunnelUUID) throws GuacamoleException
request
- The HttpServletRequest associated with the write request
received. Any data to be written will be specified within
the body of this request.response
- The HttpServletResponse associated with the write request
received.tunnelUUID
- The UUID of the tunnel to write to, as specified in
the write request. This tunnel must be attached to
the Guacamole session.GuacamoleException
- If an error occurs while handling the write
request.Copyright © 2014. All Rights Reserved.