public static class NgrokClient.Builder
extends java.lang.Object
NgrokClient, see docs for that class for example usage.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
NgrokClient |
build()
Build the
NgrokClient. |
NgrokClient.Builder |
withHttpClient(HttpClient httpClient)
The class used to make HTTP requests to
ngrok's APIs. |
NgrokClient.Builder |
withJavaNgrokConfig(JavaNgrokConfig javaNgrokConfig)
The
java-ngrok to use when interacting with the ngrok binary. |
NgrokClient.Builder |
withNgrokInstaller(NgrokInstaller ngrokInstaller)
The class used to download and install
ngrok. |
NgrokClient.Builder |
withNgrokProcess(NgrokProcess ngrokProcess)
The class used to manage the
ngrok binary. |
public NgrokClient.Builder withJavaNgrokConfig(JavaNgrokConfig javaNgrokConfig)
java-ngrok to use when interacting with the ngrok binary.public NgrokClient.Builder withNgrokInstaller(NgrokInstaller ngrokInstaller)
ngrok. Only needed if
withNgrokProcess(NgrokProcess) is not called.public NgrokClient.Builder withNgrokProcess(NgrokProcess ngrokProcess)
ngrok binary.public NgrokClient.Builder withHttpClient(HttpClient httpClient)
ngrok's APIs.public NgrokClient build()
NgrokClient.