[SNMP4J] Address type and parse method
Frank Fock
fock at agentpp.com
Fri Nov 3 23:21:40 CET 2006
Hello Marco,
Good point. In version 1.8 the following constants will be part
of GenericAddress:
/**
* Default address type identifier for an UpdAddress.
*/
public static final String TYPE_UDP = "udp";
/**
* Default address type identifier for a TcpAddress.
*/
public static final String TYPE_TCP = "tcp";
/**
* Default address type identifier for an IpAddress.
*/
public static final String TYPE_IP = "ip";
Best regards,
Frank
Marco.Bresciani at alcatel.it wrote:
> Hello,
> with respect to this description
> http://www.snmp4j.org/doc/org/snmp4j/smi/GenericAddress.html#parse(java.lang.String)
> ... Does an enum or a set of constants exists in order to have a reference
> to allowed types for address?
>
> I found the address.properties file checking inside the JAr file and I saw
> the "udp", "tcp" and "ip" Strings but... there is a reference for
> programmer? Can I use an enum or final static values? It's not very
> "polite" to write "udp" hard-coded in the code... :-)
>
> Thank you.
>
> Ing. Marco Bresciani
>
--
AGENT++
http://www.agentpp.com
http://www.mibexplorer.com
http://www.mibdesigner.com
More information about the SNMP4J
mailing list