Interface ResultCode
-
- All Superinterfaces:
Avp<Enumerated<ResultCode.Code>>
,FramedAvp
- All Known Implementing Classes:
ResultCode.DefaultResultCode
public interface ResultCode extends Avp<Enumerated<ResultCode.Code>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ResultCode.Code
static class
ResultCode.DefaultResultCode
static class
ResultCode.EnumeratedHolder
Ah! Must be a better way.-
Nested classes/interfaces inherited from interface io.snice.codecs.codec.diameter.avp.Avp
Avp.AvpCodeStep<T extends DiameterType>, Avp.Builder<T extends DiameterType>, Avp.DefaultBuilder<T extends DiameterType>, Avp.DefaultValueStepBuilder<T extends DiameterType>, Avp.ValueStep<T extends DiameterType>
-
-
Field Summary
-
Fields inherited from interface io.snice.codecs.codec.diameter.avp.FramedAvp
CANNOT_CAST_AVP_OF_TYPE
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default Optional<ResultCode.Code>
getAsEnum()
default long
getCode()
Convenience method for getting the AVP code from theAvpHeader
default int
getResultCode()
Convenience method for getting the actual integer value of the underlying result code.default boolean
isResultCode()
static ResultCode
of(int code)
static ResultCode
parse(FramedAvp raw)
default ResultCode
toResultCode()
default void
writeValue(io.snice.buffer.WritableBuffer buffer)
Write just the value (so not the AVP header) to the specified buffer.-
Methods inherited from interface io.snice.codecs.codec.diameter.avp.FramedAvp
ensure, getData, getHeader, getLength, getPadding, isEnumerated, isExperimentalResult, isExperimentalResultCode, isOriginHost, isOriginRealm, isProductName, toDestinationHost, toDestinationRealm, toEnumerated, toExperimentalResult, toExperimentalResultCode, toHostIpAddress, toOriginHost, toOriginRealm, toProductName, writeTo
-
-
-
-
Field Detail
-
CODE
static final int CODE
- See Also:
- Constant Field Values
-
TYPE
static final Class<Enumerated> TYPE
The parameterized type of this Avp. The main purpose for this field is simply that it is easier to do reflection magic on a field than work out a parameterized type on a generic interface.
-
DiameterMultiRoundAuth1001
static final ResultCode DiameterMultiRoundAuth1001
-
DiameterSuccess2001
static final ResultCode DiameterSuccess2001
-
DiameterLimitedSuccess2002
static final ResultCode DiameterLimitedSuccess2002
-
DiameterFirstRegistration2003
static final ResultCode DiameterFirstRegistration2003
-
DiameterSubsequentRegistration2004
static final ResultCode DiameterSubsequentRegistration2004
-
DiameterUnregisteredService2005
static final ResultCode DiameterUnregisteredService2005
-
DiameterSuccessServerNameNotStored2006
static final ResultCode DiameterSuccessServerNameNotStored2006
-
DiameterServerSelection2007
static final ResultCode DiameterServerSelection2007
-
DiameterSuccessAuthSentServerNotStored2008
static final ResultCode DiameterSuccessAuthSentServerNotStored2008
-
DiameterSuccessRelocateHa2009
static final ResultCode DiameterSuccessRelocateHa2009
-
DiameterCommandUnsupported3001
static final ResultCode DiameterCommandUnsupported3001
-
DiameterUnableToDeliver3002
static final ResultCode DiameterUnableToDeliver3002
-
DiameterRealmNotServed3003
static final ResultCode DiameterRealmNotServed3003
-
DiameterTooBusy3004
static final ResultCode DiameterTooBusy3004
-
DiameterLoopDetected3005
static final ResultCode DiameterLoopDetected3005
-
DiameterRedirectIndication3006
static final ResultCode DiameterRedirectIndication3006
-
DiameterApplicationUnsupported3007
static final ResultCode DiameterApplicationUnsupported3007
-
DiameterInvalidHdrBits3008
static final ResultCode DiameterInvalidHdrBits3008
-
DiameterInvalidAvpBits3009
static final ResultCode DiameterInvalidAvpBits3009
-
DiameterUnknownPeer3010
static final ResultCode DiameterUnknownPeer3010
-
DiameterRealmRedirectIndication3011
static final ResultCode DiameterRealmRedirectIndication3011
-
DiameterAuthenticationRejected4001
static final ResultCode DiameterAuthenticationRejected4001
-
DiameterOutOfSpace4002
static final ResultCode DiameterOutOfSpace4002
-
DiameterElectionLost4003
static final ResultCode DiameterElectionLost4003
-
DiameterErrorMipReplyFailure4005
static final ResultCode DiameterErrorMipReplyFailure4005
-
DiameterErrorHaNotAvailable4006
static final ResultCode DiameterErrorHaNotAvailable4006
-
DiameterErrorBadKey4007
static final ResultCode DiameterErrorBadKey4007
-
DiameterErrorMipFilterNotSupported4008
static final ResultCode DiameterErrorMipFilterNotSupported4008
-
DiameterEndUserServiceDenied4010
static final ResultCode DiameterEndUserServiceDenied4010
-
DiameterCreditControlNotApplicable4011
static final ResultCode DiameterCreditControlNotApplicable4011
-
DiameterCreditLimitReached4012
static final ResultCode DiameterCreditLimitReached4012
-
DiameterUserNameRequired4013
static final ResultCode DiameterUserNameRequired4013
-
ResourceFailure4014
static final ResultCode ResourceFailure4014
-
DiameterEndUserServiceDenied4241
static final ResultCode DiameterEndUserServiceDenied4241
-
DiameterAvpUnsupported5001
static final ResultCode DiameterAvpUnsupported5001
-
DiameterUnknownSessionId5002
static final ResultCode DiameterUnknownSessionId5002
-
DiameterAuthorizationRejected5003
static final ResultCode DiameterAuthorizationRejected5003
-
DiameterInvalidAvpValue5004
static final ResultCode DiameterInvalidAvpValue5004
-
DiameterMissingAvp5005
static final ResultCode DiameterMissingAvp5005
-
DiameterResourcesExceeded5006
static final ResultCode DiameterResourcesExceeded5006
-
DiameterContradictingAvps5007
static final ResultCode DiameterContradictingAvps5007
-
DiameterAvpNotAllowed5008
static final ResultCode DiameterAvpNotAllowed5008
-
DiameterAvpOccursTooManyTimes5009
static final ResultCode DiameterAvpOccursTooManyTimes5009
-
DiameterNoCommonApplication5010
static final ResultCode DiameterNoCommonApplication5010
-
DiameterUnsupportedVersion5011
static final ResultCode DiameterUnsupportedVersion5011
-
DiameterUnableToComply5012
static final ResultCode DiameterUnableToComply5012
-
DiameterInvalidBitInHeader5013
static final ResultCode DiameterInvalidBitInHeader5013
-
DiameterInvalidAvpLength5014
static final ResultCode DiameterInvalidAvpLength5014
-
DiameterInvalidMessageLength5015
static final ResultCode DiameterInvalidMessageLength5015
-
DiameterInvalidAvpBitCombo5016
static final ResultCode DiameterInvalidAvpBitCombo5016
-
DiameterNoCommonSecurity5017
static final ResultCode DiameterNoCommonSecurity5017
-
DiameterRadiusAvpUntranslatable5018
static final ResultCode DiameterRadiusAvpUntranslatable5018
-
DiameterErrorNoForeignHaService5024
static final ResultCode DiameterErrorNoForeignHaService5024
-
DiameterErrorEndToEndMipKeyEncryption5025
static final ResultCode DiameterErrorEndToEndMipKeyEncryption5025
-
DiameterUserUnknown5030
static final ResultCode DiameterUserUnknown5030
-
DiameterRatingFailed5031
static final ResultCode DiameterRatingFailed5031
-
DiameterErrorUserUnknown5032
static final ResultCode DiameterErrorUserUnknown5032
-
DiameterErrorIdentitiesDontMatch5033
static final ResultCode DiameterErrorIdentitiesDontMatch5033
-
DiameterErrorIdentityNotRegistered5034
static final ResultCode DiameterErrorIdentityNotRegistered5034
-
DiameterErrorRoamingNotAllowed5035
static final ResultCode DiameterErrorRoamingNotAllowed5035
-
DiameterErrorIdentityAlreadyRegistered5036
static final ResultCode DiameterErrorIdentityAlreadyRegistered5036
-
DiameterErrorAuthSchemeNotSupported5037
static final ResultCode DiameterErrorAuthSchemeNotSupported5037
-
DiameterErrorInAssignmentType5038
static final ResultCode DiameterErrorInAssignmentType5038
-
DiameterErrorTooMuchData5039
static final ResultCode DiameterErrorTooMuchData5039
-
DiameterErrorNotSupportedUserData5040
static final ResultCode DiameterErrorNotSupportedUserData5040
-
DiameterErrorMip6AuthMode5041
static final ResultCode DiameterErrorMip6AuthMode5041
-
UnknownBindingTemplateName5042
static final ResultCode UnknownBindingTemplateName5042
-
BindingFailure5043
static final ResultCode BindingFailure5043
-
MaxBindingsSetFailure5044
static final ResultCode MaxBindingsSetFailure5044
-
MaximumBindingsReachedForEndpoint5045
static final ResultCode MaximumBindingsReachedForEndpoint5045
-
SessionExists5046
static final ResultCode SessionExists5046
-
InsufficientClassifiers5047
static final ResultCode InsufficientClassifiers5047
-
DiameterErrorEapCodeUnknown5048
static final ResultCode DiameterErrorEapCodeUnknown5048
-
DiameterEndUserNotFound5241
static final ResultCode DiameterEndUserNotFound5241
-
-
Method Detail
-
getResultCode
default int getResultCode()
Convenience method for getting the actual integer value of the underlying result code. If the underlying enum doesn't exist, then -1 will be returned.
-
getCode
default long getCode()
Description copied from interface:FramedAvp
Convenience method for getting the AVP code from theAvpHeader
-
toResultCode
default ResultCode toResultCode()
- Specified by:
toResultCode
in interfaceFramedAvp
-
isResultCode
default boolean isResultCode()
- Specified by:
isResultCode
in interfaceFramedAvp
-
writeValue
default void writeValue(io.snice.buffer.WritableBuffer buffer)
Description copied from interface:Avp
Write just the value (so not the AVP header) to the specified buffer. If you wish to write out the entireAvp
then use the methodFramedAvp.writeTo(WritableBuffer)
.- Specified by:
writeValue
in interfaceAvp<Enumerated<ResultCode.Code>>
-
of
static ResultCode of(int code)
-
getAsEnum
default Optional<ResultCode.Code> getAsEnum()
-
parse
static ResultCode parse(FramedAvp raw)
-
-