@Override public ReAuthRequest createReAuthRequest(Request req) { return new ReAuthRequestImpl(req); }
@Override public ReAuthRequest createReAuthRequest(Request req) { return new ReAuthRequestImpl(req); }
public ReAuthRequest createReAuthRequest(Request req) { return new ReAuthRequestImpl(req); }
protected ReAuthRequest createReAuthRequest(Request request) { return new ReAuthRequestImpl(request); }
public ReAuthRequest createReAuthRequest(Request req) { return new ReAuthRequestImpl(req); }
protected ReAuthRequest createReAuthRequest(Request request) { return new ReAuthRequestImpl(request); }
protected ReAuthRequest createReAuthRequest(Request request) { return new ReAuthRequestImpl(request); }
public void sendReAuthRequest(ReAuthRequest request) throws IOException { try { //super.sendMessage(request); DiameterMessageImpl msg = (DiameterMessageImpl) request; this.serverSession.sendReAuthRequest(new ReAuthRequestImpl(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); } }
@Override public void sendReAuthRequest(GqReAuthRequest rar) throws IOException { if (this.state != GqSessionState.OPEN) throw new DiameterException("Failed to validate, wrong state: " + this.state); DiameterMessageImpl msg = (DiameterMessageImpl) rar; try { session.sendReAuthRequest(new ReAuthRequestImpl((Request) msg.getGenericData())); } catch (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 sendReAuthRequest(ReAuthRequest rar) throws IOException { // RFC 4006 5.5 if(!rar.hasReAuthRequestType()) { rar.setReAuthRequestType(ReAuthRequestType.AUTHORIZE_ONLY); } if(!rar.hasAuthApplicationId()) { rar.setAuthApplicationId(CreditControlMessageFactory._CCA_AUTH_APP_ID); } DiameterMessageImpl msg = (DiameterMessageImpl) rar; try { session.sendReAuthRequest(new ReAuthRequestImpl((Request) msg.getGenericData())); } catch (org.jdiameter.api.validation.AvpNotAllowedException e) { throw new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId()); } catch (Exception e) { if(logger.isDebugEnabled()) { logger.debug("Failed to send message, due to: ", e); } throw new IOException("Failed to send message, due to: " + e); } }
public void sendReAuthRequest(ReAuthRequest rar) throws IOException { // RFC 4006 5.5 if(!rar.hasReAuthRequestType()) { rar.setReAuthRequestType(ReAuthRequestType.AUTHORIZE_ONLY); } if(!rar.hasAuthApplicationId()) { rar.setAuthApplicationId(CreditControlMessageFactory._CCA_AUTH_APP_ID); } DiameterMessageImpl msg = (DiameterMessageImpl) rar; try { session.sendReAuthRequest(new ReAuthRequestImpl((Request) msg.getGenericData())); } catch (org.jdiameter.api.validation.AvpNotAllowedException e) { throw new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId()); } catch (Exception e) { if(logger.isDebugEnabled()) { logger.debug("Failed to send message, due to: ", e); } throw new IOException("Failed to send message, due to: " + e); } }
public void sendReAuthRequest(ReAuthRequest rar) throws IOException { //RFC 4006 5.5 if(!rar.hasReAuthRequestType()) { rar.setReAuthRequestType(ReAuthRequestType.AUTHORIZE_ONLY); } if(!rar.hasAuthApplicationId()) { rar.setAuthApplicationId(CreditControlMessageFactory._CCA_AUTH_APP_ID); } DiameterMessageImpl msg = (DiameterMessageImpl) rar; try { session.sendReAuthRequest(new ReAuthRequestImpl((Request) msg.getGenericData())); } catch (org.jdiameter.api.validation.AvpNotAllowedException e) { AvpNotAllowedException anae = new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId()); throw anae; } catch (Exception e) { e.printStackTrace(); IOException ioe = new IOException("Failed to send message, due to: " + e); throw ioe; } }
public void sendReAuthRequest(ReAuthRequest rar) throws IOException { //RFC 4006 5.5 if(!rar.hasReAuthRequestType()) { rar.setReAuthRequestType(ReAuthRequestType.AUTHORIZE_ONLY); } if(!rar.hasAuthApplicationId()) { rar.setAuthApplicationId(CreditControlMessageFactory._CCA_AUTH_APP_ID); } DiameterMessageImpl msg = (DiameterMessageImpl) rar; try { session.sendReAuthRequest(new ReAuthRequestImpl((Request) msg.getGenericData())); } catch (org.jdiameter.api.validation.AvpNotAllowedException e) { AvpNotAllowedException anae = new AvpNotAllowedException("Message validation failed.", e, e.getAvpCode(), e.getVendorId()); throw anae; } catch (Exception e) { e.printStackTrace(); IOException ioe = new IOException("Failed to send message, due to: " + e); throw ioe; } }
listener.doReAuthAnswer(this, new ReAuthRequestImpl(localEvent.getRequest().getMessage()), new ReAuthAnswerImpl((Answer) localEvent.getAnswer().getMessage())); break;
listener.doReAuthAnswer(this, new ReAuthRequestImpl(localEvent.getRequest().getMessage()), new ReAuthAnswerImpl((Answer) localEvent.getAnswer().getMessage())); break;