public class ResultCode extends Object
Common.
3GPP result codes are defined in Cx,
Sh, Zh.| Constructor and Description |
|---|
ResultCode(int vendorId,
int code,
String name) |
| Modifier and Type | Method and Description |
|---|---|
AVP<?> |
getAVP() |
int |
getCode() |
String |
getName() |
int |
getVendorId() |
boolean |
isExperimentalResultCode()
Returns
true if the AVP is an Common.EXPERIMENTAL_RESULT_CODE. |
boolean |
isInformational()
Return
true if code is 1XXX. |
boolean |
isPermanentFailure()
Returns
true if code is 5XXX. |
boolean |
isProtocolError()
Returns
true if code is 3XXX. |
boolean |
isSuccess()
Returns
true if code is 2XXX. |
boolean |
isTransientFailure()
Returns
true if code is 4XXX. |
String |
toString() |
public ResultCode(int vendorId,
int code,
String name)
public int getCode()
public String getName()
public boolean isInformational()
true if code is 1XXX.
Errors that fall within this category are used to inform the requester that a request could
not be satisfied, and additional action is required on its part before access is granted.true if code is 1XXX.public boolean isSuccess()
true if code is 2XXX.
Errors that fall within the Success category are used to inform a peer that a request has
been successfully completed.true if code is 2XXX.public boolean isProtocolError()
true if code is 3XXX.
Errors that fall within the Protocol Error category SHOULD be treated on a per-hop basis, and
Diameter proxies MAY attempt to correct the error, if it is possible. Note that these and
only these errors MUST only be used in answer messages whose 'E' bit is set.true if code is 3XXX.public boolean isTransientFailure()
true if code is 4XXX.
Errors that fall within the transient failures category are used to inform a peer that the
request could not be satisfied at the time it was received, but MAY be able to satisfy the
request in the future.true if code is 4XXX.public boolean isPermanentFailure()
true if code is 5XXX.
Errors that fall within the permanent failures category are used to inform the peer that the
request failed, and should not be attempted again.true if code is 5XXX.public int getVendorId()
public boolean isExperimentalResultCode()
true if the AVP is an Common.EXPERIMENTAL_RESULT_CODE.public AVP<?> getAVP()
Copyright © 2014. All Rights Reserved.