Class HttpTunnelConnection
- java.lang.Object
- org.springframework.boot.devtools.tunnel.client.HttpTunnelConnection
 
- All Implemented Interfaces:
- TunnelConnection
 - public class HttpTunnelConnection extends Object implements TunnelConnection - TunnelConnectionimplementation that uses HTTP to transfer data.- Since:
- 1.3.0
- See Also:
- TunnelClient,- HttpTunnelServer
 
- Nested Class Summary- Nested Classes - Modifier and Type - Class - Description - protected class- HttpTunnelConnection.TunnelChannelA- WritableByteChannelused to transfer traffic.
 - Constructor Summary- Constructors - Modifier - Constructor - Description - HttpTunnelConnection(String url, org.springframework.http.client.ClientHttpRequestFactory requestFactory)Create a new- HttpTunnelConnectioninstance.- protected- HttpTunnelConnection(String url, org.springframework.http.client.ClientHttpRequestFactory requestFactory, Executor executor)Create a new- HttpTunnelConnectioninstance.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - protected org.springframework.http.client.ClientHttpRequest- createRequest(boolean hasPayload)- HttpTunnelConnection.TunnelChannel- open(WritableByteChannel incomingChannel, Closeable closeable)Open the tunnel connection.
 
- Constructor Detail- HttpTunnelConnection- public HttpTunnelConnection(String url, org.springframework.http.client.ClientHttpRequestFactory requestFactory) Create a new- HttpTunnelConnectioninstance.- Parameters:
- url- the URL to connect to
- requestFactory- the HTTP request factory
 
 - HttpTunnelConnection- protected HttpTunnelConnection(String url, org.springframework.http.client.ClientHttpRequestFactory requestFactory, Executor executor) Create a new- HttpTunnelConnectioninstance.- Parameters:
- url- the URL to connect to
- requestFactory- the HTTP request factory
- executor- the executor used to handle connections
 
 
 - Method Detail- open- public HttpTunnelConnection.TunnelChannel open(WritableByteChannel incomingChannel, Closeable closeable) throws Exception Description copied from interface:- TunnelConnectionOpen the tunnel connection.- Specified by:
- openin interface- TunnelConnection
- Parameters:
- incomingChannel- a- WritableByteChannelthat should be used to write any incoming data received from the remote server
- closeable- a closeable to call when the channel is closed
- Returns:
- a WritableByteChannelthat should be used to send any outgoing data destined for the remote server
- Throws:
- Exception- in case of errors
 
 - createRequest- protected final org.springframework.http.client.ClientHttpRequest createRequest(boolean hasPayload) throws IOException - Throws:
- IOException