- java.lang.Object
-
- org.snmp4j.smi.AbstractVariable
-
- org.snmp4j.smi.SMIAddress
-
- org.snmp4j.smi.IpAddress
-
- org.snmp4j.smi.TransportIpAddress
-
- org.snmp4j.smi.TcpAddress
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<Variable>
,BERSerializable
,Address
,AssignableFromByteArray
,AssignableFromString
,Variable
- Direct Known Subclasses:
TlsAddress
public class TcpAddress extends TransportIpAddress
TheTcpAddress
represents TCP/IP transport addresses.- Version:
- 1.0
- Author:
- Frank Fock
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.snmp4j.smi.TransportIpAddress
port
-
Fields inherited from class org.snmp4j.smi.IpAddress
ANY_IPADDRESS
-
Fields inherited from class org.snmp4j.smi.AbstractVariable
SMISYNTAXES_PROPERTIES
-
-
Constructor Summary
Constructors Constructor Description TcpAddress()
TcpAddress(int port)
TcpAddress(String address)
TcpAddress(InetAddress inetAddress, int port)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
SocketAddress
getSocketAddress()
Gets the socket address of this address.static Address
parse(String address)
-
Methods inherited from class org.snmp4j.smi.TransportIpAddress
compareTo, decodeBER, encodeBER, getBERLength, getBERPayloadLength, getPort, getSyntax, getValue, hashCode, isValid, parseAddress, setPort, setTransportAddress, toString
-
Methods inherited from class org.snmp4j.smi.IpAddress
clone, fromSubIndex, getFamily, getInetAddress, setAddress, setInetAddress, setValue, setValue, toByteArray, toInt, toLong, toSubIndex
-
Methods inherited from class org.snmp4j.smi.AbstractVariable
createFromBER, createFromSyntax, equal, getSyntaxFromString, getSyntaxString, getSyntaxString, isDynamic, isException
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.snmp4j.smi.Address
isTransportCompatible
-
-
-
-
Constructor Detail
-
TcpAddress
public TcpAddress()
-
TcpAddress
public TcpAddress(InetAddress inetAddress, int port)
-
TcpAddress
public TcpAddress(int port)
-
TcpAddress
public TcpAddress(String address)
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceVariable
- Overrides:
equals
in classTransportIpAddress
-
getSocketAddress
public SocketAddress getSocketAddress()
Description copied from interface:Address
Gets the socket address of this address.- Specified by:
getSocketAddress
in interfaceAddress
- Overrides:
getSocketAddress
in classIpAddress
- Returns:
- the socket address representation (if available) of this address or
null
if that does not exist (yet).
-
-