Package com.zebra.sdk.printer
Class TcpPortStatus
Object
com.zebra.sdk.printer.TcpPortStatus
Class for describing the status of ports open on a Zebra printer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe 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 asLISTEN,ESTABLISHED.toString()String description of the port status, prints as "PORT(NAME) REMOTE-IP:REMOTE-PORT STATUS"
-
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
The port number open on the printer.- Returns:
- The port number open on the printer.
-
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
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
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
The status of the printer's port, such asLISTEN,ESTABLISHED.- Returns:
- The status of the printer's port, e.g.
LISTEN,ESTABLISHED.
-
toString
String description of the port status, prints as "PORT(NAME) REMOTE-IP:REMOTE-PORT STATUS"
-