Example usage for org.springframework.boot.devtools.livereload Connection Connection

List of usage examples for org.springframework.boot.devtools.livereload Connection Connection

Introduction

In this page you can find the example usage for org.springframework.boot.devtools.livereload Connection Connection.

Prototype

Connection(Socket socket, InputStream inputStream, OutputStream outputStream) throws IOException 

Source Link

Document

Create a new Connection instance.

Usage

From source file:org.springframework.boot.devtools.livereload.LiveReloadServer.java

/**
 * Factory method used to create the {@link Connection}.
 * @param socket the source socket//from  w  ww.  j  a  v  a  2s .c om
 * @param inputStream the socket input stream
 * @param outputStream the socket output stream
 * @return a connection
 * @throws IOException in case of I/O errors
 */
protected Connection createConnection(Socket socket, InputStream inputStream, OutputStream outputStream)
        throws IOException {
    return new Connection(socket, inputStream, outputStream);
}