Class Port

java.lang.Object
org.nmap4j.model.Port

public class Port extends Object
A class to flatten the port data structure that comes out of Nmap.
  • Constructor Details

    • Port

      public Port(String prtcl, int portNum)
  • Method Details

    • getProtocol

      public String getProtocol()
    • setProtocol

      public void setProtocol(String protocol)
    • getPortNumber

      public int getPortNumber()
    • setPortNumber

      public void setPortNumber(int portNumber)
    • getState

      public String getState()
    • setState

      public void setState(String state)
    • getReason

      public String getReason()
    • setReason

      public void setReason(String reason)
    • getReasonTtl

      public String getReasonTtl()
    • setReasonTtl

      public void setReasonTtl(String reasonTtl)
    • getServiceName

      public String getServiceName()
    • setServiceName

      public void setServiceName(String serviceName)
    • getMethod

      public String getMethod()
    • setMethod

      public void setMethod(String method)
    • getConf

      public String getConf()
    • setConf

      public void setConf(String conf)
    • getProduct

      public String getProduct()
    • setProduct

      public void setProduct(String product)
    • getOstype

      public String getOstype()
    • setOstype

      public void setOstype(String ostype)
    • getTunnel

      public String getTunnel()
    • setTunnel

      public void setTunnel(String tunnel)