com.ibm.diameter.packet
Class AvpValidatorUtilDiamIdentity

java.lang.Object
  extended by com.ibm.diameter.packet.AvpValidatorUtilGeneric
      extended by com.ibm.diameter.packet.AvpValidatorUtilUTF8String
          extended by com.ibm.diameter.packet.AvpValidatorUtilDiamIdentity
All Implemented Interfaces:
AvpValidatorUtil

public class AvpValidatorUtilDiamIdentity
extends AvpValidatorUtilUTF8String

Class to validate an AVP of type DiameterIdentity. The DiameterIdentity is the fully qualified domain name (FQDN) of the Diameter node. A domain name must contain only ASCII characters and so can be treated as a UTF8 String. The maximum length of a FQDN is 255 bytes.


Field Summary
 
Fields inherited from interface com.ibm.diameter.packet.AvpValidatorUtil
UNKNOWN_AVP, VALID_AVP
 
Constructor Summary
AvpValidatorUtilDiamIdentity()
           
 
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
 

Constructor Detail

AvpValidatorUtilDiamIdentity

public AvpValidatorUtilDiamIdentity()
Method Detail

validate

public int validate(Avp avp,
                    boolean vendorSpecific)
Description copied from interface: AvpValidatorUtil
Performs validation of the AVP

Specified by:
validate in interface AvpValidatorUtil
Overrides:
validate in class AvpValidatorUtilUTF8String
Parameters:
avp - The AVP to be validated
vendorSpecific - 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.