Class SocketTargetServerConnection
java.lang.Object
org.springframework.boot.devtools.tunnel.server.SocketTargetServerConnection
- All Implemented Interfaces:
TargetServerConnection
Socket based
TargetServerConnection.- Since:
- 1.3.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorsConstructorDescriptionSocketTargetServerConnection(PortProvider portProvider) Create a newSocketTargetServerConnection. -
Method Summary
Modifier and TypeMethodDescriptionopen(int socketTimeout) Open a connection to the target server with the specified timeout.
-
Constructor Details
-
SocketTargetServerConnection
Create a newSocketTargetServerConnection.- Parameters:
portProvider- the port provider
-
-
Method Details
-
open
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
-