public class TcpPortStatus extends Object
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getPortName()
The name of the protocol associated with that port, for example, HTTP for 80, FTP for 21.
|
String |
getPrinterPort()
The port number open on the printer.
|
String |
getRemoteIpAddress()
The remote IP connected to the printer's port, will be 0.0.0.0 if not connected.
|
String |
getRemotePort()
The port number of the remote connected to the printer, will be 0 if no connection.
|
String |
getStatus()
The status of the printer's port, such as
LISTEN , ESTABLISHED . |
String |
toString()
String description of the port status, prints as "PORT(NAME) REMOTE-IP:REMOTE-PORT STATUS"
|
public TcpPortStatus(String printerPort, String portName, String remoteIpAddress, String remotePort, String status)
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.public String getPrinterPort()
public String getPortName()
public String getRemoteIpAddress()
public String getRemotePort()
public String getStatus()
LISTEN
, ESTABLISHED
.LISTEN
, ESTABLISHED
.public String toString()
toString
in class Object
Object.toString()
© 2015 ZIH Corp. All Rights Reserved.