com.ibm.diameter.packet
Class DiameterPacketValidationResults

java.lang.Object
  extended by com.ibm.diameter.packet.DiameterPacketValidationResults

public class DiameterPacketValidationResults
extends java.lang.Object

A data object containing the Results of validation operations of a Diameter Packet.


Constructor Summary
DiameterPacketValidationResults()
          Default (empty) constructor.
DiameterPacketValidationResults(int error)
          Constructor that receives an error code.
DiameterPacketValidationResults(int error, Avp problemAvp)
          Constructor that receives an error code and the problem AVP.
 
Method Summary
 int getError()
          Returns the error value.
 java.lang.String getErrorMessage()
          Returns the error message that would be used in the Error-Message AVP.
 Avp getProblemAvp()
          Returns the AVP causing the problem.
 boolean isResultCodeValid()
          Returns the boolean indicating if the result code is valid.
 void setError(int error)
          Sets the error result code value.
 void setErrorMessage(java.lang.String errorMessage)
          Sets the error message that should be sent in the Error-Message AVP.
 void setProblemAvp(Avp problemAvp)
          Sets the AVP causing the problem.
 void setResultCodeValid(boolean isResultCodeValid)
          Sets the ResultCodeValid boolean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiameterPacketValidationResults

public DiameterPacketValidationResults()
Default (empty) constructor.


DiameterPacketValidationResults

public DiameterPacketValidationResults(int error)
Constructor that receives an error code.

Parameters:
error - An int containing the error result code.

DiameterPacketValidationResults

public DiameterPacketValidationResults(int error,
                                       Avp problemAvp)
Constructor that receives an error code and the problem AVP.

Parameters:
error - An int containing the error result code
problemAvp - The Avp that is identified as the one causing the problem.
Method Detail

getError

public int getError()
Returns the error value.

Returns:
Returns the error.

setError

public void setError(int error)
Sets the error result code value.

Parameters:
error - The error to set.

getProblemAvp

public Avp getProblemAvp()
Returns the AVP causing the problem.

Returns:
Returns the problemAvp.

setProblemAvp

public void setProblemAvp(Avp problemAvp)
Sets the AVP causing the problem.

Parameters:
problemAvp - The problemAvp to set.

getErrorMessage

public java.lang.String getErrorMessage()
Returns the error message that would be used in the Error-Message AVP.

Returns:
Returns the errorMessage.

setErrorMessage

public void setErrorMessage(java.lang.String errorMessage)
Sets the error message that should be sent in the Error-Message AVP.

Parameters:
errorMessage - The errorMessage to set.

isResultCodeValid

public boolean isResultCodeValid()
Returns the boolean indicating if the result code is valid.

Returns:
boolean indicating if the result code is valid

setResultCodeValid

public void setResultCodeValid(boolean isResultCodeValid)
Sets the ResultCodeValid boolean.

Parameters:
isResultCodeValid - Boolean to indicate if the result code is a valid value.


Copyright © 2006 IBM Corp. All Rights Reserved.