Class CastLink.Address

java.lang.Object
com.iizigo.panel.CastLink.Address
Enclosing class:
CastLink

public static final class CastLink.Address extends Object
An address offered in the chooser.
Author:
Christopher Mindus
  • Method Details

    • getInterface

      public CastLink.Interface getInterface()
      Gets the interface.
      Returns:
      The interface.
    • getAddress

      public InetAddress getAddress()
      Gets the address.
      Returns:
      The address.
    • getHost

      public String getHost()
      Gets the address as the link carries it: CastLink.hostOf(InetAddress).
      Returns:
      The text, e.g. "192.168.1.20" or "2001:db8::1".
    • getText

      public String getText()
      Gets the text of the chooser: the interface's name and the address, e.g. "Wi-Fi: 192.168.1.20".
      Returns:
      The text.
    • getLink

      public String getLink(int port)
      Gets the link for this address.
      Parameters:
      port - The port of the web server.
      Returns:
      The link.
    • toString

      public String toString()
      Debug string.
      Overrides:
      toString in class Object