Class Target

java.lang.Object
velo.ladaalpha.fields.internet.Target

public class Target extends Object
The Class Target.
  • Constructor Details

    • Target

      public Target(String ip, String hostname, ArrayList<Integer> openPorts)
      Instantiates a new target.
      Parameters:
      ip - the ip
      hostname - the hostname
      openPorts - the open ports
  • Method Details

    • getIp

      public String getIp()
      Gets the ip.
      Returns:
      the ip
    • setIp

      public void setIp(String ip)
      Sets the ip.
      Parameters:
      ip - the new ip
    • getHostname

      public String getHostname()
      Gets the hostname.
      Returns:
      the hostname
    • setHostname

      public void setHostname(String hostname)
      Sets the hostname.
      Parameters:
      hostname - the new hostname
    • getOpenPorts

      public ArrayList<Integer> getOpenPorts()
      Gets the open ports.
      Returns:
      the open ports
    • setOpenPorts

      public void setOpenPorts(ArrayList<Integer> openPorts)
      Sets the open ports.
      Parameters:
      openPorts - the new open ports
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Object
      Returns:
      the string