- CapturedRequest - Class in com.github.alexdlaird.ngrok.protocol
-
An object representing a CapturedRequest response from ngrok
's API.
- CapturedRequest() - Constructor for class com.github.alexdlaird.ngrok.protocol.CapturedRequest
-
- CapturedRequest.Request - Class in com.github.alexdlaird.ngrok.protocol
-
- CapturedRequest.Response - Class in com.github.alexdlaird.ngrok.protocol
-
- CapturedRequests - Class in com.github.alexdlaird.ngrok.protocol
-
An object representing CapturedRequests response from ngrok
's API.
- CapturedRequests() - Constructor for class com.github.alexdlaird.ngrok.protocol.CapturedRequests
-
- com.github.alexdlaird.exception - package com.github.alexdlaird.exception
-
This package contains exceptions that can be thrown by java-ngrok
.
- com.github.alexdlaird.http - package com.github.alexdlaird.http
-
This package contains a simple, generic HTTP client, which can be used to interact with ngrok
's APIs.
- com.github.alexdlaird.ngrok - package com.github.alexdlaird.ngrok
-
This package contains functionality related to ngrok
.
- com.github.alexdlaird.ngrok.conf - package com.github.alexdlaird.ngrok.conf
-
This package contains functionality related to java-ngrok
configuration.
- com.github.alexdlaird.ngrok.installer - package com.github.alexdlaird.ngrok.installer
-
This package contains functionality related to downloading and installing ngrok
.
- com.github.alexdlaird.ngrok.process - package com.github.alexdlaird.ngrok.process
-
This package contains functionality related to managing the ngrok
process.
- com.github.alexdlaird.ngrok.protocol - package com.github.alexdlaird.ngrok.protocol
-
This package contains POJOs for interacting with ngrok
.
- com.github.alexdlaird.util - package com.github.alexdlaird.util
-
This package contains utility functions.
- connect(CreateTunnel) - Method in class com.github.alexdlaird.ngrok.NgrokClient
-
Establish a new ngrok
tunnel for the tunnel definition, returning an object representing
the connected tunnel.
- connect() - Method in class com.github.alexdlaird.ngrok.NgrokClient
-
- createHttpUrlConnection(String) - Method in class com.github.alexdlaird.http.DefaultHttpClient
-
Override this method if you could like to implement a custom URL connection.
- CreateTunnel - Class in com.github.alexdlaird.ngrok.protocol
-
An object that represents a ngrok
Tunnel creation request.
- CreateTunnel.Builder - Class in com.github.alexdlaird.ngrok.protocol
-
- get(String, List<Parameter>, Map<String, String>, Class<B>) - Method in class com.github.alexdlaird.http.DefaultHttpClient
-
- get(String, List<Parameter>, Map<String, String>, Class<B>) - Method in interface com.github.alexdlaird.http.HttpClient
-
Perform GET operation against an endpoint.
- get(String, Class<B>) - Method in interface com.github.alexdlaird.http.HttpClient
-
- getAddr() - Method in class com.github.alexdlaird.ngrok.process.NgrokLog
-
- getAddr() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get the local port to which the tunnel will forward traffic.
- getAddr() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel.TunnelConfig
-
Get the local addr to which the tunnel forwards traffic.
- getApiUrl() - Method in class com.github.alexdlaird.ngrok.process.NgrokProcess
-
Get the API URL for the ngrok
web interface.
- getAuth() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get HTTP basic authentication credentials enforced on tunnel requests.
- getAuthToken() - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig
-
Get the authtoken that will be passed to commands.
- getBindTls() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get ngrok
's bind_tls
value.
- getBody() - Method in exception com.github.alexdlaird.exception.JavaNgrokHTTPException
-
Get the response body.
- getBody() - Method in exception com.github.alexdlaird.http.HttpClientException
-
Get the response body.
- getBody() - Method in class com.github.alexdlaird.http.Response
-
Get the body of the response.
- getBodyRaw() - Method in class com.github.alexdlaird.http.Response
-
Get the raw body of the response (can be useful if parsing fails).
- getClientCas() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get the PEM TLS certificate authority path that will be used to verify incoming TLS client
connection certificates.
- getConfig() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel
-
Get the tunnel config.
- getConfigPath() - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig
-
Get the path to the ngrok
config file.
- getCount() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel.Metrics
-
- getCrt() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get the PEM TLS certificate path that will be used to terminate TLS traffic before forwarding locally.
- getDuration() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest
-
- getErr() - Method in class com.github.alexdlaird.ngrok.process.NgrokLog
-
- getGauge() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel.Metrics
-
- getHeaderFields() - Method in class com.github.alexdlaird.http.Response
-
Get the response headers.
- getHeaders() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest.Request
-
- getHeaders() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest.Response
-
- getHostHeader() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get the HTTP Host header.
- getHostname() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get the hostname.
- getHttpClient() - Method in class com.github.alexdlaird.ngrok.NgrokClient
-
Get the class used to make HTTP requests to ngrok
's APIs.
- getId() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest
-
- getJavaNgrokConfig() - Method in class com.github.alexdlaird.ngrok.NgrokClient
-
Get the java-ngrok
to use when interacting with the ngrok
binary.
- getJavaNgrokVersion() - Method in class com.github.alexdlaird.ngrok.protocol.Version
-
Get the java-ngrok
version.
- getKey() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get the PEM TLS private key path that will be used to terminate TLS traffic before forwarding locally.
- getLine() - Method in class com.github.alexdlaird.ngrok.process.NgrokLog
-
- getLogEventCallback() - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig
-
Get the log event callback that will be invoked each time ngrok
emits a log.
- getLogs() - Method in class com.github.alexdlaird.ngrok.process.NgrokProcess.ProcessMonitor
-
Get the ngrok
logs.
- getLvl() - Method in class com.github.alexdlaird.ngrok.process.NgrokLog
-
- getMaxLogs() - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig
-
Get the maximum number of ngrok
logs to retain in the monitoring thread.
- getMetadata() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get the arbitrary user-defined metadata that will appear in the ngrok service API when listing tunnels.
- getMethod() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest.Request
-
- getMetrics() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel
-
- getMsg() - Method in class com.github.alexdlaird.ngrok.process.NgrokLog
-
- getName() - Method in class com.github.alexdlaird.http.Parameter
-
Get the name of the field.
- getName() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get the name of the tunnel.
- getName() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel
-
Get the name of the tunnel.
- getNgrokBin() - Static method in class com.github.alexdlaird.ngrok.installer.NgrokInstaller
-
Get the ngrok
executable for the current system.
- getNgrokConfig(Path, boolean) - Method in class com.github.alexdlaird.ngrok.installer.NgrokInstaller
-
Get the ngrok
config from the given path.
- getNgrokConfig(Path) - Method in class com.github.alexdlaird.ngrok.installer.NgrokInstaller
-
- getNgrokError() - Method in exception com.github.alexdlaird.exception.NgrokException
-
Get The error that caused the ngrok
process to fail.
- getNgrokInstaller() - Method in class com.github.alexdlaird.ngrok.process.NgrokProcess
-
Get the class used to download and install ngrok
.
- getNgrokLogs() - Method in exception com.github.alexdlaird.exception.NgrokException
-
Get the ngrok
logs, which may be useful for debugging.
- getNgrokPath() - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig
-
Get the path to the ngrok
binary.
- getNgrokProcess() - Method in class com.github.alexdlaird.ngrok.NgrokClient
-
Get the class used to manage the ngrok
binary.
- getNgrokVersion() - Method in class com.github.alexdlaird.ngrok.protocol.Version
-
Get the ngrok
version.
- getP50() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel.Metrics
-
- getP90() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel.Metrics
-
- getP95() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel.Metrics
-
- getP99() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel.Metrics
-
- getProcessMonitor() - Method in class com.github.alexdlaird.ngrok.process.NgrokProcess
-
Get the Runnable that is monitoring the ngrok
thread.
- getProto() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest.Request
-
- getProto() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest.Response
-
- getProto() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get the tunnel protocol.
- getProto() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel
-
Get the proto of the tunnel.
- getPublicUrl() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel
-
Get the public URL of the tunnel.
- getRate1() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel.Metrics
-
- getRate15() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel.Metrics
-
- getRate5() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel.Metrics
-
- getRaw() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest.Request
-
- getRaw() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest.Response
-
- getRegion() - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig
-
Get the region in which ngrok
will start.
- getRemoteAddr() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest
-
- getRemoteAddr() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get the bound remote TCP port on the given address.
- getRequest() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest
-
- getRequests() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequests
-
- getResponse() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest
-
- getStart() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest
-
- getStartupTime() - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig
-
Get the startup time before ngrok
times out on boot.
- getStatus() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest.Response
-
- getStatusCode() - Method in exception com.github.alexdlaird.exception.JavaNgrokHTTPException
-
Get the HTTP status code.
- getStatusCode() - Method in exception com.github.alexdlaird.http.HttpClientException
-
Get the HTTP status code.
- getStatusCode() - Method in class com.github.alexdlaird.http.Response
-
Get the response code.
- getStatusCode() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest.Response
-
- getSubdomain() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel
-
Get the subdomain.
- getSystem() - Static method in class com.github.alexdlaird.ngrok.installer.NgrokInstaller
-
Parse the name fo the OS from system properties and return a friendly name.
- getT() - Method in class com.github.alexdlaird.ngrok.process.NgrokLog
-
- getTunnelName() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest
-
- getTunnels() - Method in class com.github.alexdlaird.ngrok.NgrokClient
-
Get a list of active ngrok
tunnels.
- getTunnels() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnels
-
- getUri() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest
-
- getUri() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequest.Request
-
- getUri() - Method in class com.github.alexdlaird.ngrok.protocol.CapturedRequests
-
- getUri() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnel
-
Get the relative URI of the tunnel.
- getUri() - Method in class com.github.alexdlaird.ngrok.protocol.Tunnels
-
- getUrl() - Method in exception com.github.alexdlaird.exception.JavaNgrokHTTPException
-
Get the URL.
- getUrl() - Method in exception com.github.alexdlaird.http.HttpClientException
-
Get the URL.
- getUrl() - Method in enum com.github.alexdlaird.ngrok.installer.NgrokCDNUrl
-
- getValue() - Method in class com.github.alexdlaird.http.Parameter
-
Get the value of the field.
- getVersion() - Method in class com.github.alexdlaird.ngrok.NgrokClient
-
Get the ngrok
and java-ngrok
version.
- getVersion() - Method in class com.github.alexdlaird.ngrok.process.NgrokProcess
-
Get the ngrok
version.
- validateConfig(Path) - Method in class com.github.alexdlaird.ngrok.installer.NgrokInstaller
-
Validate that the config file at the given path is valid for ngrok
and java-ngrok
.
- validateConfig(Map<String, Object>) - Method in class com.github.alexdlaird.ngrok.installer.NgrokInstaller
-
Validate that the given map of config items are valid for ngrok
and java-ngrok
.
- valueOf(String) - Static method in enum com.github.alexdlaird.ngrok.installer.NgrokCDNUrl
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.github.alexdlaird.ngrok.protocol.BindTls
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.github.alexdlaird.ngrok.protocol.Proto
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.github.alexdlaird.ngrok.protocol.Region
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.github.alexdlaird.ngrok.installer.NgrokCDNUrl
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.github.alexdlaird.ngrok.protocol.BindTls
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.github.alexdlaird.ngrok.protocol.Proto
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum com.github.alexdlaird.ngrok.protocol.Region
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- Version - Class in com.github.alexdlaird.ngrok.protocol
-
An object representing ngrok
's version and java-ngrok
's version.
- Version(String, String) - Constructor for class com.github.alexdlaird.ngrok.protocol.Version
-
- WINDOWS - Static variable in class com.github.alexdlaird.ngrok.installer.NgrokInstaller
-
- withAddr(String) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
- withAddr(int) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
- withAuth(String) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
HTTP basic authentication credentials to enforce on tunneled requests
- withAuthToken(String) - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig.Builder
-
An authtoken to pass to commands (overrides what is in the config).
- withBindTls(BindTls) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
- withBindTls(boolean) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
- withClientCas(String) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
PEM TLS certificate authority at this path will verify incoming TLS client connection certificates.
- withConfigPath(Path) - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig.Builder
-
The path to the ngrok
config file, defaults to ~/.ngrok2/config.yml
.
- withContentType(String) - Method in class com.github.alexdlaird.http.DefaultHttpClient.Builder
-
Default contentType header for requests.
- withCrt(String) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
PEM TLS certificate at this path to terminate TLS traffic before forwarding locally.
- withEncoding(String) - Method in class com.github.alexdlaird.http.DefaultHttpClient.Builder
-
Default encoding for requests.
- withHostHeader(String) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
Rewrite the HTTP Host header to this value, or preserve
to leave it unchanged.
- withHostname(String) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
Hostname to request (requires reserved name and DNS CNAME).
- withHttpClient(HttpClient) - Method in class com.github.alexdlaird.ngrok.NgrokClient.Builder
-
The class used to make HTTP requests to ngrok
's APIs.
- withJavaNgrokConfig(JavaNgrokConfig) - Method in class com.github.alexdlaird.ngrok.NgrokClient.Builder
-
The java-ngrok
to use when interacting with the ngrok
binary.
- withKey(String) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
PEM TLS private key at this path to terminate TLS traffic before forwarding locally.
- withLogEventCallback(Function<NgrokLog, Void>) - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig.Builder
-
A callback that will be invoked each time ngrok
emits a log.
- withMaxLogs(int) - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig.Builder
-
The maximum number of ngrok
logs to retain in the monitoring thread.
- withMetadata(String) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
Arbitrary user-defined metadata that will appear in the ngrok service API when listing tunnels.
- withName(String) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
The name of the tunnel.
- withNgrokInstaller(NgrokInstaller) - Method in class com.github.alexdlaird.ngrok.NgrokClient.Builder
-
The class used to download and install ngrok
.
- withNgrokPath(Path) - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig.Builder
-
The path to the ngrok
binary, defaults to ~/.ngrok2/ngrok
.
- withNgrokProcess(NgrokProcess) - Method in class com.github.alexdlaird.ngrok.NgrokClient.Builder
-
The class used to manage the ngrok
binary.
- withoutInspect() - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
Disable HTTP request inspection on tunnels.
- withoutMonitoring() - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig.Builder
-
Don't keep monitoring ngrok
(for logs, etc.) after startup is complete.
- withProto(Proto) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
- withRegion(Region) - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig.Builder
-
The region in which ngrok
should start.
- withRemoteAddr(String) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
Bind the remote TCP port on the given address.
- withStartupTimeout(int) - Method in class com.github.alexdlaird.ngrok.conf.JavaNgrokConfig.Builder
-
The max number of seconds to wait for ngrok
to start before timing out.
- withSubdomain(String) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
Subdomain name to request.
- withTunnelDefinition(Map<String, Object>) - Method in class com.github.alexdlaird.ngrok.protocol.CreateTunnel.Builder
-
Populate any null
attributes (with the exception of name
) in this Builder with
values from the given tunnelDefinition
.