|
Oracle Communications Converged Application Server Java API Reference 5.0 E18767-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.bea.wcp.diameter.DiameterException
com.bea.wcp.diameter.MessageException
com.bea.wcp.diameter.AvpException
public class AvpException
Exception raised if an invalid AVP was encountered in a Diameter message.
Constructor Summary | |
---|---|
AvpException(ResultCode rc, Attribute attr) Creates a new AvpException for the specified ResultCode and missing AVP. |
|
AvpException(ResultCode rc, Avp invalidAvp) Creates a new AvpException for the specified ResultCode and invalid AVP. |
|
AvpException(ResultCode rc, Avp[] invalidAvps) Creates a new AvpException for the specified ResultCode and invalid AVPs. |
Method Summary | |
---|---|
void |
addInvalidAvp(Avp avp) Adds an additional AVP to the list of failed AVPs. |
void |
addMissingAvp(Attribute attr) Adds an additional missing AVP to the list of failed AVPs. |
static AvpException |
avpOccursTooManyTimes(Avp avp) Convenience method to return an AvpException indicating that the specified AVP occurs too many times in the message. |
static AvpException |
contradictingAvps(Avp avp1, Avp avp2) Convenience method to return an AvpException indicating indicating contradicting AVPs in a message. |
Answer |
createAnswer(Request req) Creates a new Answer message for a Request that contained invalid AVPs. |
Avp |
getFailedAvp() |
AvpList |
getFailedAvps() Returns the list of failed AVPs for this exception. |
static AvpException |
invalidAvpLength(Avp avp) Convenience method to return an AvpException indicating that the length of the specified AVP was invalid. |
static AvpException |
invalidAvpValue(Avp avp) Convenience method to return an AvpException indicating that the value of the specified AVP was invalid. |
static AvpException |
missingAvp(Attribute attr) |
Methods inherited from class com.bea.wcp.diameter.MessageException |
---|
getResultCode, unableToComply |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AvpException(ResultCode rc, Avp invalidAvp)
rc
- the error ResultCodeinvalidAvp
- the invalid (failed) AVP to be includedpublic AvpException(ResultCode rc, Avp[] invalidAvps)
rc
- the error ResultCodeinvalidAvps
- the the list of invalid (failed) AVPs to be includedpublic AvpException(ResultCode rc, Attribute attr)
rc
- the error ResultCodeattr
- the Attribute for the missing AVPMethod Detail |
---|
public void addInvalidAvp(Avp avp)
avp
- the failed AVP to be addedpublic void addMissingAvp(Attribute attr)
attr
- the Attribute for the missing AVPpublic AvpList getFailedAvps()
public Avp getFailedAvp()
public Answer createAnswer(Request req)
createAnswer
in class MessageException
req
- the Request that was invalidpublic static AvpException avpOccursTooManyTimes(Avp avp)
public static AvpException missingAvp(Attribute attr)
public static AvpException invalidAvpLength(Avp avp)
public static AvpException invalidAvpValue(Avp avp)
public static AvpException contradictingAvps(Avp avp1, Avp avp2)
|
Oracle Communications Converged Application Server Java API Reference 5.0 E18767-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |