Class TcpPortStatus

Object
com.zebra.sdk.printer.TcpPortStatus

public class TcpPortStatus extends Object
Class for describing the status of ports open on a Zebra printer.
  • Constructor Summary

    Constructors
    Constructor
    Description
    TcpPortStatus(String printerPort, String portName, String remoteIpAddress, String remotePort, String status)
    Creates a container which describes the status of a specific port on a Zebra printer.
  • Method Summary

    Modifier and Type
    Method
    Description
    The name of the protocol associated with that port, for example, HTTP for 80, FTP for 21.
    The port number open on the printer.
    The remote IP connected to the printer's port, will be 0.0.0.0 if not connected.
    The port number of the remote connected to the printer, will be 0 if no connection.
    The status of the printer's port, such as LISTEN, ESTABLISHED.
    String description of the port status, prints as "PORT(NAME) REMOTE-IP:REMOTE-PORT STATUS"

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • TcpPortStatus

      public TcpPortStatus(String printerPort, String portName, String remoteIpAddress, String remotePort, String status)
      Creates a container which describes the status of a specific port on a Zebra printer.
      Parameters:
      printerPort - the printer's port.
      portName - the name of the protocol used by the port.
      remoteIpAddress - remote IP connected to the port.
      remotePort - remote port number.
      status - port status.
  • Method Details

    • getPrinterPort

      public String getPrinterPort()
      The port number open on the printer.
      Returns:
      The port number open on the printer.
    • getPortName

      public String getPortName()
      The name of the protocol associated with that port, for example, HTTP for 80, FTP for 21.
      Returns:
      The name of the protocol associated with the port.
    • getRemoteIpAddress

      public String getRemoteIpAddress()
      The remote IP connected to the printer's port, will be 0.0.0.0 if not connected.
      Returns:
      The remote IP connected to the printer's port, will be 0.0.0.0 if not connected.
    • getRemotePort

      public String getRemotePort()
      The port number of the remote connected to the printer, will be 0 if no connection.
      Returns:
      The port number of the remote connected to the printer, will be 0 if no connection.
    • getStatus

      public String getStatus()
      The status of the printer's port, such as LISTEN, ESTABLISHED.
      Returns:
      The status of the printer's port, e.g. LISTEN, ESTABLISHED.
    • toString

      public String toString()
      String description of the port status, prints as "PORT(NAME) REMOTE-IP:REMOTE-PORT STATUS"
      Overrides:
      toString in class Object
      Returns:
      String description of the port status.
      See Also: