public PduHandle sendPdu(TransportMapping transportMapping, Target target, PDU pdu, boolean expectResponse) throws MessageException { return sendPdu(transportMapping, target, pdu, expectResponse, null); }
public PduHandle sendPdu(TransportMapping<?> transportMapping, Target target, PDU pdu, boolean expectResponse) throws MessageException { return sendPdu(transportMapping, target, pdu, expectResponse, null); }
public PduHandle sendPdu(TransportMapping transportMapping, Address transportAddress, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse) throws MessageException { return sendPdu(transportMapping, transportAddress, messageProcessingModel, securityModel, securityName, securityLevel, pdu, expectResponse, null); }
public PduHandle sendPdu(TransportMapping transport, Address transportAddress, int messageProcessingModel, int securityModel, byte[] securityName, int securityLevel, PDU pdu, boolean expectResponse, PduHandleCallback pduHandleCallback) throws MessageException { try { MessageProcessingModel mp = getMessageProcessingModel(messageProcessingModel); if (mp == null) { throw new MessageException("Unsupported message processing model: " + messageProcessingModel); } if (!mp.isProtocolVersionSupported(messageProcessingModel)) { throw new MessageException("SNMP version "+messageProcessingModel+ " is not supported "+ "by message processing model "+ messageProcessingModel); } if (transport == null) { transport = getTransport(transportAddress); } if (transport == null) { throw new UnsupportedAddressClassException( "Unsupported address class (transport mapping): "+
public PduHandle sendPdu(TransportMapping transport, Target target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> pduHandleCallback) throws MessageException { int messageProcessingModel = target.getVersion(); Address transportAddress = target.getAddress(); int securityModel = target.getSecurityModel(); int securityLevel = target.getSecurityLevel(); try { byte[] securityName = target.getSecurityName().getValue(); MessageProcessingModel mp = getMessageProcessingModel(messageProcessingModel); if (mp == null) { throw new MessageException("Unsupported message processing model: " + messageProcessingModel, SnmpConstants.SNMP_MD_UNSUPPORTED_MP_MODEL); } if (!mp.isProtocolVersionSupported(messageProcessingModel)) { throw new MessageException("SNMP version "+messageProcessingModel+ " is not supported "+ "by message processing model "+ messageProcessingModel, SnmpConstants.SNMP_MD_UNSUPPORTED_SNMP_VERSION); } if (transport == null) { transport = getTransport(transportAddress); } if (transport == null) { throw new UnsupportedAddressClassException(
public PduHandle sendPdu(TransportMapping<?> transport, Target target, PDU pdu, boolean expectResponse, PduHandleCallback<PDU> pduHandleCallback) throws MessageException { int messageProcessingModel = target.getVersion(); Address transportAddress = target.getAddress(); int securityModel = target.getSecurityModel(); int securityLevel = target.getSecurityLevel(); try { byte[] securityName = target.getSecurityName().getValue(); MessageProcessingModel mp = getMessageProcessingModel(messageProcessingModel); if (mp == null) { throw new MessageException("Unsupported message processing model: " + messageProcessingModel, SnmpConstants.SNMP_MD_UNSUPPORTED_MP_MODEL); } if (!mp.isProtocolVersionSupported(messageProcessingModel)) { throw new MessageException("SNMP version " + messageProcessingModel + " is not supported " + "by message processing model " + messageProcessingModel, SnmpConstants.SNMP_MD_UNSUPPORTED_SNMP_VERSION); } if (transport == null) { transport = getTransport(transportAddress); } if (transport == null) { throw new UnsupportedAddressClassException( "Unsupported address class (transport mapping): " +