if (TransportDomains.snmpUDPDomain.equals(transportDomain) ||
TransportDomains.transportDomainUdpIpv4.equals(transportDomain) ||
TransportDomains.transportDomainTcpIpv4.equals(transportDomain) ||
TransportDomains.transportDomainUdpIpv6.equals(transportDomain) ||
TransportDomains.transportDomainTcpIpv6.equals(transportDomain)) {
TransportIpAddress transportIpAddress;
if (TransportDomains.transportDomainTcpIpv4.equals(transportDomain) ||
TransportDomains.transportDomainTcpIpv6.equals(transportDomain)) {
transportIpAddress = new TcpAddress();
}
else {
transportIpAddress = new UdpAddress();
}
try {
transportIpAddress.setTransportAddress(address);
}
catch (Exception ex) {
logger.debug("Invalid TransportAddress format '" + address +
"' for domain " + transportDomain);
return null;