com.ibm.diameter.packet
Class AvpValidatorUtilGeneric
java.lang.Object
com.ibm.diameter.packet.AvpValidatorUtilGeneric
- All Implemented Interfaces:
- AvpValidatorUtil
- Direct Known Subclasses:
- AvpValidatorUtilGrouped, AvpValidatorUtilOctetString, AvpValidatorUtilTime, AvpValidatorUtilUnsigned32, AvpValidatorUtilUnsigned64, AvpValidatorUtilUTF8String
public class AvpValidatorUtilGeneric
- extends java.lang.Object
- implements AvpValidatorUtil
This class is used to represent an unknown AVP. Since the AVP code is not recognized, it is impossible to validate
the specific data that is contained in the AVP. Therefore the validate
method always returns the
VALID_AVP
return type.
Method Summary |
int |
validate(Avp avp,
boolean vendorSpecific)
Performs validation of the AVP |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MINIMUM_LENGTH
public static final int MINIMUM_LENGTH
- See Also:
- Constant Field Values
MINIMUM_LENGTH_VS
public static final int MINIMUM_LENGTH_VS
- See Also:
- Constant Field Values
AvpValidatorUtilGeneric
public AvpValidatorUtilGeneric()
validate
public int validate(Avp avp,
boolean vendorSpecific)
- Description copied from interface:
AvpValidatorUtil
- Performs validation of the AVP
- Specified by:
validate
in interface AvpValidatorUtil
- Parameters:
avp
- The AVP to be validatedvendorSpecific
- true if this is a Vendor-Specific AVP, otherwise false
- Returns:
- 0 if the Avp passed validation, a non zero return code indicates a problem.
Copyright © 2006 IBM Corp. All Rights Reserved.