Class NgrokProcess

    • Method Detail

      • getNgrokInstaller

        public NgrokInstaller getNgrokInstaller()
        Get the class used to download and install ngrok.
      • getLogs

        public java.util.List<NgrokLog> getLogs()
        Get the ngrok logs.
      • start

        public void start()
        If not already running, start a ngrok process with no tunnels. This will start the ngrok web interface, against which HTTP requests can be made to create, interact with, and destroy tunnels.
        Throws:
        NgrokException - ngrok could not start.
        JavaNgrokSecurityException - The URL was not supported.
      • isRunning

        public boolean isRunning()
        Whether this object is currently managing a running ngrok process.
      • stop

        public void stop()
        Terminate the ngrok processes, if running. This method will not block, it will just issue a kill request.
      • update

        public void update()
        Update ngrok, if an update is available.
        Throws:
        NgrokException - ngrok could not start.
      • getVersion

        public java.lang.String getVersion()
        Get the ngrok version.
        Returns:
        The version.
        Throws:
        NgrokException - ngrok could not start.
      • getApiUrl

        public java.lang.String getApiUrl()
        Get the API URL for the ngrok web interface.
        Throws:
        JavaNgrokSecurityException - The URL was not supported.