public class MsgProcessorV3 extends Object
Constructor and Description |
---|
MsgProcessorV3() |
Modifier and Type | Method and Description |
---|---|
void |
configureForRequest(SnmpRequest request)
Configure the message as request according to the specific processor.
|
void |
configureForTrap(SnmpRequest trap)
Configure the message as trap according to the specific processor.
|
boolean |
decryptResponse(SnmpTarget requestTarget,
SnmpResponse response)
Performs decryption on the response message using the security information from the request target.
|
boolean |
parseResponse(SnmpResponse response)
First pass handling of a newly decoded response.
|
boolean |
prepareRequestForEncoding(SnmpRequest request,
int requestId)
This should be called right before a request is to be encoded and written to a channel.
|
void |
repairRequestAfterEncoding(SnmpRequest request)
This method overridden by a processor to repair anything done to the request in the call to
MsgProcessor.prepareRequestForEncoding(SnmpRequest, int) . |
boolean |
updateTargetFromDiscoveryResponse(SnmpTarget requestTarget,
SnmpResponse discoveryResponse)
Use this call back to update the USM parameter data in the discovery response to the target of the
original request.
|
public boolean prepareRequestForEncoding(SnmpRequest request, int requestId)
request
- SNMP request to be preparedrequestId
- allocated request ID for this messagepublic void repairRequestAfterEncoding(SnmpRequest request)
MsgProcessor.prepareRequestForEncoding(SnmpRequest, int)
. For example, the V3 processor will return
the request back to the non-encrypted form.request
- SNMP request to be repairedpublic boolean parseResponse(SnmpResponse response)
response
- SNMP response to parsepublic boolean decryptResponse(SnmpTarget requestTarget, SnmpResponse response)
requestTarget
- SNMP target of the original requestresponse
- SNMP response message.public void configureForRequest(SnmpRequest request)
request
- SNMP request to be configuredpublic void configureForTrap(SnmpRequest trap)
trap
- SNMP request to be configuredpublic boolean updateTargetFromDiscoveryResponse(SnmpTarget requestTarget, SnmpResponse discoveryResponse)
requestTarget
- original SNMP request targetdiscoveryResponse
- discovery SNMP response (must have valid USM param object)Copyright © 2015. All Rights Reserved.