Class HttpTunnelServerHandler
- java.lang.Object
- org.springframework.boot.devtools.tunnel.server.HttpTunnelServerHandler
- All Implemented Interfaces:
Handler
public class HttpTunnelServerHandler extends Object implements Handler
Adapts aHttpTunnelServer
to aHandler
.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description HttpTunnelServerHandler(HttpTunnelServer server)
Create a newHttpTunnelServerHandler
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response)
Handle the request.
Constructor Detail
HttpTunnelServerHandler
public HttpTunnelServerHandler(HttpTunnelServer server)
Create a newHttpTunnelServerHandler
instance.- Parameters:
server
- the server to adapt
Method Detail
handle
public void handle(org.springframework.http.server.ServerHttpRequest request, org.springframework.http.server.ServerHttpResponse response) throws IOException
Description copied from interface:Handler
Handle the request.- Specified by:
handle
in interfaceHandler
- Parameters:
request
- the requestresponse
- the response- Throws:
IOException
- in case of I/O errors