类 LiveReloadServer

    • 方法详细资料

      • start

        public void start()
                   throws IOException
        Start the livereload server and accept incoming connections.
        抛出:
        IOException - in case of I/O errors
      • isStarted

        public boolean isStarted()
        Return if the server has been started.
        返回:
        true if the server is running
      • getPort

        public int getPort()
        Return the port that the server is listening on.
        返回:
        the server port
      • triggerReload

        public void triggerReload()
        Trigger livereload of all connected clients.
      • createConnection

        protected org.springframework.boot.devtools.livereload.Connection createConnection​(Socket socket,
                                                                                           InputStream inputStream,
                                                                                           OutputStream outputStream)
                                                                                    throws IOException
        Factory method used to create the Connection.
        参数:
        socket - the source socket
        inputStream - the socket input stream
        outputStream - the socket output stream
        返回:
        a connection
        抛出:
        IOException - in case of I/O errors