|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.wcp.diameter.ResultCode
public final class ResultCode
Diameter result code. Each result code corresponds to either a Result-Code or Experimental-Result AVP within a Diameter answer message. This class also defines constants for the base Diameter protocol result codes.
Method Summary | |
---|---|
XmlBuffer |
appendXml(XmlBuffer xb) |
static ResultCode |
decode(Avp avp) If the specified AVP is a Result-Code or Experimental-Result AVP, then returns a new ResultCode for the result. |
static ResultCode |
define(int code, int vendorId, String msg) Creates a new "experimental" ResultCode with the specified numeric code, vendor id, and error message. |
static ResultCode |
define(int code, String msg) Creates a new ResultCode for the specified numeric code and error message. |
boolean |
equals(Object obj) |
Avp |
getAvp() |
int |
getCode() |
String |
getMessage() Returns the result code error message or null if none. |
int |
getVendorId() If this is an experimental result code, then returns the vendor id, otherwise returns 0. |
int |
hashCode() |
boolean |
isExperimental() Returns true if this is an experimental result. |
boolean |
isInformational() Returns true if this is an informational result. |
boolean |
isPermanentFailure() Returns true if this is a permanent failure. |
boolean |
isProtocolError() Returns true if this is a protocol error. |
static boolean |
isResultCode(Avp avp) Returns true if the specified AVP is a Result-Code AVP. |
boolean |
isSuccess() Returns true if this is a successful result. |
boolean |
isTransientFailure() Returns true if this is a transient error |
String |
toString() |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ResultCode MULTI_ROUND_AUTH
public static final ResultCode SUCCESS
public static final ResultCode LIMITED_SUCCESS
public static final ResultCode COMMAND_UNSUPPORTED
public static final ResultCode UNABLE_TO_DELIVER
public static final ResultCode REALM_NOT_SERVED
public static final ResultCode TOO_BUSY
public static final ResultCode LOOP_DETECTED
public static final ResultCode REDIRECT_INDICATION
public static final ResultCode APPLICATION_UNSUPPORTED
public static final ResultCode INVALID_HDR_BITS
public static final ResultCode INVALID_AVP_BITS
public static final ResultCode UNKNOWN_PEER
public static final ResultCode AUTHENTICATION_REJECTED
public static final ResultCode OUT_OF_SPACE
public static final ResultCode ELECTION_LOST
public static final ResultCode AVP_UNSUPPORTED
public static final ResultCode UNKNOWN_SESSION_ID
public static final ResultCode AUTHORIZATION_REJECTED
public static final ResultCode INVALID_AVP_VALUE
public static final ResultCode MISSING_AVP
public static final ResultCode RESOURCES_EXCEEDED
public static final ResultCode CONTRADICTING_AVPS
public static final ResultCode AVP_NOT_ALLOWED
public static final ResultCode AVP_OCCURS_TOO_MANY_TIMES
public static final ResultCode NO_COMMON_APPLICATION
public static final ResultCode UNSUPPORTED_VERSION
public static final ResultCode UNABLE_TO_COMPLY
public static final ResultCode INVALID_BIT_IN_HEADER
public static final ResultCode INVALID_AVP_LENGTH
public static final ResultCode INVALID_MESSAGE_LENGTH
public static final ResultCode INVALID_AVP_BIT_COMBO
public static final ResultCode NO_COMMON_SECURITY
Method Detail |
---|
public static ResultCode define(int code, int vendorId, String msg)
code
- the numeric result codevendorId
- the vendor idmsg
- the error message, or null if nonepublic static ResultCode define(int code, String msg)
code
- the numeric result codemsg
- the error message, or null if nonepublic int getCode()
public int getVendorId()
public String getMessage()
public boolean isInformational()
public boolean isSuccess()
public boolean isProtocolError()
public boolean isTransientFailure()
public boolean isPermanentFailure()
public boolean isExperimental()
public static ResultCode decode(Avp avp) throws AvpException
avp
- the AVP to be decodedAvpException
- if the result code AVP was invalidpublic static boolean isResultCode(Avp avp)
avp
- the AVP to be checkedpublic Avp getAvp()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public XmlBuffer appendXml(XmlBuffer xb)
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2012 Oracle Corporation. All Rights Reserved.