Class SocketTargetServerConnection
- java.lang.Object
- org.springframework.boot.devtools.tunnel.server.SocketTargetServerConnection
- All Implemented Interfaces:
TargetServerConnection
public class SocketTargetServerConnection extends Object implements TargetServerConnection
Socket basedTargetServerConnection
.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description SocketTargetServerConnection(PortProvider portProvider)
Create a newSocketTargetServerConnection
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteChannel
open(int socketTimeout)
Open a connection to the target server with the specified timeout.
Constructor Detail
SocketTargetServerConnection
public SocketTargetServerConnection(PortProvider portProvider)
Create a newSocketTargetServerConnection
.- Parameters:
portProvider
- the port provider
Method Detail
open
public ByteChannel open(int socketTimeout) throws IOException
Description copied from interface:TargetServerConnection
Open a connection to the target server with the specified timeout.- Specified by:
open
in interfaceTargetServerConnection
- Parameters:
socketTimeout
- the read timeout- Returns:
- a
ByteChannel
providing read/write access to the server - Throws:
IOException
- in case of I/O errors