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()); } }
public void sendAbortSessionRequest(AbortSessionRequest request) throws IOException { try { //super.sendMessage(request); DiameterMessageImpl msg = (DiameterMessageImpl) request; this.serverSession.sendAbortSessionRequest(new AbortSessionRequestImpl(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()); } }
public void sendAbortSessionAnswer(AbortSessionAnswer answer) throws IOException { try { // super.sendMessage(answer); DiameterMessageImpl asa = (DiameterMessageImpl) answer; this.clientSession.sendAbortSessionAnswer(new AbortSessionAnswerImpl((Answer) asa.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()); } }
public void sendSessionTerminationRequest(SessionTerminationRequest request) throws IOException { try { //super.sendMessage(request); DiameterMessageImpl msg = (DiameterMessageImpl) request; this.clientSession.sendSessionTerminationRequest(new SessionTermRequestImpl(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()); } }
public void sendRegistrationTerminationAnswer(RegistrationTerminationAnswer registrationTerminationAnswer) throws IOException { try{ DiameterMessageImpl msg = (DiameterMessageImpl) registrationTerminationAnswer; appSession.sendRegistrationTerminationAnswer(new JRegistrationTerminationAnswerImpl((Answer) 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()); } }
public void sendLocationInfoRequest(LocationInfoRequest locationInfoRequest) throws IOException { try{ DiameterMessageImpl msg = (DiameterMessageImpl) locationInfoRequest; appSession.sendLocationInformationRequest(new JLocationInfoRequestImpl(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()); } }
public void sendPushProfileAnswer(PushProfileAnswer pushProfileAnswer) throws IOException { try{ DiameterMessageImpl msg = (DiameterMessageImpl) pushProfileAnswer; appSession.sendPushProfileAnswer(new JPushProfileAnswerImpl((Answer) 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()); } }
public void sendServerAssignmentRequest(ServerAssignmentRequest serverAssignmentRequest) throws IOException { try{ DiameterMessageImpl msg = (DiameterMessageImpl) serverAssignmentRequest; appSession.sendServerAssignmentRequest(new JServerAssignmentRequestImpl(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()); } }
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()); } }
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()); } }
public void sendReAuthAnswer(ReAuthAnswer rar) throws IOException { DiameterMessageImpl msg = (DiameterMessageImpl) rar; try { session.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); } }
public void sendUserDataRequest(UserDataRequest message) throws IOException { try { DiameterMessageImpl msg = (DiameterMessageImpl) message; this.clientSession.sendUserDataRequest(new UserDataRequestImpl((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); } }
public void sendGxReAuthAnswer(final GxReAuthAnswer rar) throws IOException { final DiameterMessageImpl msg = (DiameterMessageImpl) rar; try { session.sendGxReAuthAnswer(new GxReAuthAnswerImpl((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); } }
public void sendReAuthAnswer(ReAuthAnswer rar) throws IOException { DiameterMessageImpl msg = (DiameterMessageImpl) rar; try { session.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); } }
public void sendAbortSessionAnswer(final AbortSessionAnswer asr) throws IOException { final DiameterMessageImpl msg = (DiameterMessageImpl) asr; try { session.sendAbortSessionAnswer(new RxAbortSessionAnswerImpl((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); } }
public void sendReAuthAnswer(ReAuthAnswer rar) throws IOException { DiameterMessageImpl msg = (DiameterMessageImpl) rar; try { session.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); } }
public void sendReAuthAnswer(ReAuthAnswer rar) throws IOException { DiameterMessageImpl msg = (DiameterMessageImpl) rar; try { session.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); } }
public void sendReAuthAnswer(final ReAuthAnswer raa) throws IOException { final DiameterMessageImpl msg = (DiameterMessageImpl) raa; try { session.sendReAuthAnswer(new RxReAuthAnswerImpl((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); } }
public void sendSessionTerminationAnswer(SessionTerminationAnswer request) throws IOException { try { //super.sendMessage(request); DiameterMessageImpl msg = (DiameterMessageImpl) request; this.serverSession.sendSessionTerminationAnswer(new SessionTermAnswerImpl((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); } }
public void sendUpdateRoCreditControlRequest(RoCreditControlRequest ccr) throws IOException { validateState(ccr); DiameterMessageImpl msg = (DiameterMessageImpl) ccr; try { session.sendCreditControlRequest(new RoCreditControlRequestImpl((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); } }