Class Tunnel


  • public class Tunnel
    extends java.lang.Object
    An object representing a Tunnel response from ngrok's API.
    • Constructor Detail

      • Tunnel

        public Tunnel()
    • 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.
      • setMetrics

        public void setMetrics​(java.util.Map<java.lang.String,​Tunnel.Metrics> metrics)
        Set tunnel metrics.
        Parameters:
        metrics - The updated metrics.