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
ConstructorDescriptionSocketTargetServerConnection
(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: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
-