public void setExtensionAvps(DiameterAvp... avps) throws AvpNotAllowedException { for (DiameterAvp a : avps) { this.addAvp(a); } }
@Override public boolean hasRediredectHosts() { return super.hasAvp(DiameterAvpCodes.REDIRECT_HOST); } }
@Override public SponsoredConnectivityDataAvp getSponsoredConnectivityData() { return (SponsoredConnectivityDataAvp) super.getAvpAsCustom(DiameterRxAvpCodes.SPONSORED_CONNECTIVITY_DATA, DiameterRxAvpCodes.TGPP_VENDOR_ID, SponsoredConnectivityDataAvpImpl.class); }
public void sendProfileUpdateRequest(ProfileUpdateRequest message) throws IOException { try { DiameterMessageImpl msg = (DiameterMessageImpl) message; clientSession.sendProfileUpdateRequest(new ProfileUpdateRequestImpl((Request) msg.getGenericData())); } catch (org.jdiameter.api.validation.AvpNotAllowedException e) { throw new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId()); } catch (Exception e) { throw new IOException("Failed to send message, due to: " + e.getLocalizedMessage()); } }
@Override public AbortCause getAbortCause() { return (AbortCause) super.getAvpAsEnumerated(DiameterRxAvpCodes.ABORT_CAUSE, DiameterRxAvpCodes.TGPP_VENDOR_ID, AbortCause.class); }
public void setAcctApplicationIds(long[] acctApplicationIds) { DiameterAvp[] values = new DiameterAvp[acctApplicationIds.length]; for(int index = 0; index < acctApplicationIds.length; index++) { values[index] = AvpUtilities.createAvp(Avp.ACCT_APPLICATION_ID, acctApplicationIds[index]); } super.message.getAvps().removeAvp(Avp.ACCT_APPLICATION_ID); super.setExtensionAvps(values); }
@Override public AccessNetworkChargingIdentifierAvp[] getAccessNetworkChargingIdentifiers() { return (AccessNetworkChargingIdentifierAvp[]) super.getAvpsAsCustom(DiameterRxAvpCodes.ACCESS_NETWORK_CHARGING_IDENTIFIER, DiameterRxAvpCodes.TGPP_VENDOR_ID, AccessNetworkChargingIdentifierAvpImpl.class); }
public void sendReAuthAnswer(ReAuthAnswer answer) throws IOException { try { //super.sendMessage(answer); DiameterMessageImpl msg = (DiameterMessageImpl) answer; this.clientSession.sendReAuthAnswer(new ReAuthAnswerImpl((Answer)msg.getGenericData())); } catch (org.jdiameter.api.validation.AvpNotAllowedException e) { throw new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId()); } catch (Exception e) { throw new IOException("Failed to send message, due to: " + e.getMessage()); } }
@Override public RATType getRATType() { return (RATType) super.getAvpAsEnumerated(DiameterRxAvpCodes.RAT_TYPE, DiameterRxAvpCodes.TGPP_VENDOR_ID, RATType.class); }
public void setAuthApplicationIds(long[] authApplicationIds) { DiameterAvp[] values = new DiameterAvp[authApplicationIds.length]; for(int index = 0; index < authApplicationIds.length; index++) { values[index] = AvpUtilities.createAvp(Avp.AUTH_APPLICATION_ID, authApplicationIds[index]); } super.message.getAvps().removeAvp(Avp.AUTH_APPLICATION_ID); super.setExtensionAvps(values); }
@Override public AccessNetworkChargingIdentifierAvp[] getAccessNetworkChargingIdentifiers() { return (AccessNetworkChargingIdentifierAvp[]) super.getAvpsAsCustom(DiameterRxAvpCodes.ACCESS_NETWORK_CHARGING_IDENTIFIER, DiameterRxAvpCodes.TGPP_VENDOR_ID, AccessNetworkChargingIdentifierAvpImpl.class); }
public void sendMultimediaAuthenticationRequest(MultimediaAuthenticationRequest multimediaAuthenticationRequest) throws IOException { try{ DiameterMessageImpl msg = (DiameterMessageImpl) multimediaAuthenticationRequest; appSession.sendMultimediaAuthRequest(new JMultimediaAuthRequestImpl(msg.getGenericData())); } catch(org.jdiameter.api.validation.AvpNotAllowedException anae) { throw new AvpNotAllowedException(anae.getMessage(),anae.getAvpCode(),anae.getVendorId()); } catch (Exception e) { throw new IOException(e.getMessage()); } }
@Override public boolean hasRediredectHosts() { return super.hasAvp(DiameterAvpCodes.REDIRECT_HOST); } }
public void setExtensionAvps(DiameterAvp... avps) throws AvpNotAllowedException { for (DiameterAvp a : avps) { this.addAvp(a); } }
@Override public AbortCause getAbortCause() { return (AbortCause) super.getAvpAsEnumerated(DiameterRxAvpCodes.ABORT_CAUSE, DiameterRxAvpCodes.TGPP_VENDOR_ID, AbortCause.class); }
@Override public SponsoredConnectivityDataAvp getSponsoredConnectivityData() { return (SponsoredConnectivityDataAvp) super.getAvpAsCustom(DiameterRxAvpCodes.SPONSORED_CONNECTIVITY_DATA, DiameterRxAvpCodes.TGPP_VENDOR_ID, SponsoredConnectivityDataAvpImpl.class); }
public void setAuthApplicationIds(long[] authApplicationIds) { DiameterAvp[] values = new DiameterAvp[authApplicationIds.length]; for(int index = 0; index < authApplicationIds.length; index++) { values[index] = AvpUtilities.createAvp(Avp.AUTH_APPLICATION_ID, authApplicationIds[index]); } super.message.getAvps().removeAvp(Avp.AUTH_APPLICATION_ID); super.setExtensionAvps(values); }
@Override public SubscriptionIdAvp[] getSubscriptionIds() { return (SubscriptionIdAvp[]) super.getAvpsAsCustom(CreditControlAVPCodes.Subscription_Id, SubscriptionIdAvpImpl.class); }
public void sendUserAuthorizationRequest(UserAuthorizationRequest userAuthorizationRequest) throws IOException { try { DiameterMessageImpl msg = (DiameterMessageImpl) userAuthorizationRequest; appSession.sendUserAuthorizationRequest(new JUserAuthorizationRequestImpl(msg.getGenericData())); } catch (org.jdiameter.api.validation.AvpNotAllowedException anae) { throw new AvpNotAllowedException(anae.getMessage(), anae.getAvpCode(), anae.getVendorId()); } catch (Exception e) { throw new IOException(e.getMessage()); } }
@Override public boolean hasServiceInformation() { return super.hasAvp(DiameterRoAvpCodes.SERVICE_INFORMATION, DiameterRoAvpCodes.TGPP_VENDOR_ID); }