The other two methods of the SNMP protocol adaptor, one for each trap version, let you send a trap to a specified recipient:
sendV1Trap( java.net.InetAddress address, java.lang.String cs, ... )
sendV2Trap( java.net.InetAddress address, java.lang.String cs, ... )
In both cases, these methods take an address and a community string, in addition to the version-specific trap information. The address is an InetAddress object which is usually instantiated by its static methods getLocalHost or getByName. The latter method returns a valid InetAddress object when given a string representing a hostname or IP address.
The cs parameter is the community string, a name that the agent and manager exchange to help identify one another. The string given will be used as the community when sending the trap PDU.
Either one of these methods sends a trap to a single manager using a single community string. The ACL trap group mechanism is better suited to sending traps to multiple managers, though it requires the setup of a trap group. Note that even if a trap group is in use, the two methods above only send one trap to the specified host address.