Class SocketTargetServerConnection
- java.lang.Object
- org.springframework.boot.devtools.tunnel.server.SocketTargetServerConnection
 
- All Implemented Interfaces:
- TargetServerConnection
 - public class SocketTargetServerConnection extends Object implements TargetServerConnection Socket based- TargetServerConnection.- Since:
- 1.3.0
 
- Constructor Summary- Constructors - Constructor - Description - SocketTargetServerConnection(PortProvider portProvider)Create a new- SocketTargetServerConnection.
 - 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 new- SocketTargetServerConnection.- 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 interface- TargetServerConnection
- Parameters:
- socketTimeout- the read timeout
- Returns:
- a ByteChannelproviding read/write access to the server
- Throws:
- IOException- in case of I/O errors