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 ByteChannelopen(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:TargetServerConnectionOpen a connection to the target server with the specified timeout.- Specified by:
openin interfaceTargetServerConnection- Parameters:
socketTimeout- the read timeout- Returns:
- a
ByteChannelproviding read/write access to the server - Throws:
IOException- in case of I/O errors