public class SnmpResponse extends SnmpField
Modifier and Type | Class and Description |
---|---|
static class |
SnmpResponse.ErrorType |
NULL_FIELD
Constructor and Description |
---|
SnmpResponse() |
Modifier and Type | Method and Description |
---|---|
boolean |
decrypt(SnmpTarget target)
Decrypts the response based on the passed in target.
|
SnmpResponse.ErrorType |
getError()
Returns the current response error.
|
String |
getLocalizedErrorDescription()
Returns the localized error description for the response.
|
String |
getParsedCommunity()
Returns the parsed community name of the response.
|
SnmpVersionType |
getParsedVersion()
Returns the parsed version of the response.
|
SnmpPdu |
getPdu() |
SnmpPduTrapV1 |
getPduTrapV1() |
InetAddress |
getRemoteAddress()
Returns the remote address this response came from.
|
SnmpFieldType |
getVarBindError()
If the error state is
PDU_VARBIND_ERROR this will return the specific VarBind error. |
boolean |
isOk()
Query the state of the response.
|
String |
toString() |
public SnmpResponse.ErrorType getError()
public boolean isOk()
public SnmpFieldType getVarBindError()
PDU_VARBIND_ERROR
this will return the specific VarBind error.public InetAddress getRemoteAddress()
public String getLocalizedErrorDescription()
public SnmpVersionType getParsedVersion()
public String getParsedCommunity()
public boolean decrypt(SnmpTarget target)
datagramBytes
field will
be cleared out because it is no longer needed.target
- SNMP targetpublic SnmpPdu getPdu()
public SnmpPduTrapV1 getPduTrapV1()
Copyright © 2015. All Rights Reserved.