- java.lang.Object
-
- com.github.alexdlaird.ngrok.protocol.Tunnel
-
public class Tunnel extends java.lang.ObjectAn object representing a Tunnel response fromngrok's API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTunnel.Metricsstatic classTunnel.TunnelConfig
-
Constructor Summary
Constructors Constructor Description Tunnel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tunnel.TunnelConfiggetConfig()Get the tunnel config.java.util.Map<java.lang.String,Tunnel.Metrics>getMetrics()Get the tunnel metrics.java.lang.StringgetName()Get the name of the tunnel.java.lang.StringgetProto()Get the proto of the tunnel.java.lang.StringgetPublicUrl()Get the public URL of the tunnel.java.lang.StringgetUri()Get the relative URI of the tunnel.voidsetMetrics(java.util.Map<java.lang.String,Tunnel.Metrics> metrics)Set tunnel metrics.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name of the tunnel.
-
getUri
public java.lang.String getUri()
Get the relative URI of the tunnel.
-
getPublicUrl
public java.lang.String getPublicUrl()
Get the public URL of the tunnel.
-
getProto
public java.lang.String getProto()
Get the proto of the tunnel.
-
getConfig
public Tunnel.TunnelConfig getConfig()
Get the tunnel config.
-
getMetrics
public java.util.Map<java.lang.String,Tunnel.Metrics> getMetrics()
Get the tunnel metrics.
-
setMetrics
public void setMetrics(java.util.Map<java.lang.String,Tunnel.Metrics> metrics)
Set tunnel metrics.- Parameters:
metrics- The updated metrics.
-
-