|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cipango.diameter.ResultCode
public class ResultCode
A result code consits of
Common
.
3GPP result codes are defined in Cx
,
Sh
, Zh
.
Constructor Summary | |
---|---|
ResultCode(int vendorId,
int code,
java.lang.String name)
|
Method Summary | |
---|---|
AVP<?> |
getAVP()
|
int |
getCode()
|
java.lang.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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ResultCode(int vendorId, int code, java.lang.String name)
Method Detail |
---|
public int getCode()
public java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
public AVP<?> getAVP()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |