Package com.github.alexdlaird.ngrok
Class NgrokClient
- java.lang.Object
-
- com.github.alexdlaird.ngrok.NgrokClient
-
public class NgrokClient extends java.lang.Object
A client for interacting with ngrok, its binary, and its APIs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NgrokClient.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tunnel
connect()
Tunnel
connect(CreateTunnel createTunnel)
void
disconnect(java.lang.String publicUrl)
HttpClient
getHttpClient()
JavaNgrokConfig
getJavaNgrokConfig()
NgrokInstaller
getNgrokInstaller()
NgrokProcess
getNgrokProcess()
Tunnels
getTunnels()
Version
getVersion()
void
kill()
void
setAuthToken(java.lang.String authToken)
void
update()
-
-
-
Method Detail
-
connect
public Tunnel connect(CreateTunnel createTunnel) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
connect
public Tunnel connect() throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
disconnect
public void disconnect(java.lang.String publicUrl) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
getTunnels
public Tunnels getTunnels()
-
kill
public void kill() throws java.lang.InterruptedException
- Throws:
java.lang.InterruptedException
-
setAuthToken
public void setAuthToken(java.lang.String authToken) throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
update
public void update() throws java.io.IOException, java.lang.InterruptedException
- Throws:
java.io.IOException
java.lang.InterruptedException
-
getVersion
public Version getVersion()
-
getJavaNgrokConfig
public JavaNgrokConfig getJavaNgrokConfig()
-
getNgrokInstaller
public NgrokInstaller getNgrokInstaller()
-
getNgrokProcess
public NgrokProcess getNgrokProcess()
-
getHttpClient
public HttpClient getHttpClient()
-
-