org.jdiameter.api.Message.setRequest()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(248)

本文整理了Java中org.jdiameter.api.Message.setRequest()方法的一些代码示例,展示了Message.setRequest()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Message.setRequest()方法的具体详情如下:
包路径:org.jdiameter.api.Message
类名称:Message
方法名:setRequest

Message.setRequest介绍

[英]Set 1 or 0 to R bit field of header
[中]将1或0设置为标题的R位字段

代码示例

代码示例来源:origin: org.mobicents.diameter/jdiameter-impl

/**
 *
 * @param message
 */
public JRegistrationTerminationRequestImpl(Message message) {
 super(message);
 message.setRequest(true);
}

代码示例来源:origin: org.mobicents.diameter/jdiameter-impl

/**
 *
 * @param message
 */
public JResetRequestImpl(Message message) {
 super(message);
 message.setRequest(true);
}

代码示例来源:origin: org.mobicents.diameter/jdiameter-impl

/**
 *
 * @param message
 */
public JAuthenticationInformationRequestImpl(Message message) {
 super(message);
 message.setRequest(true);
}

代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-sh-common-events

/**
 * @param msg
 */
public UserDataRequestImpl(Message msg) {
 super(msg);
 msg.setRequest(true);
 super.longMessageName = "User-Data-Request";
 super.shortMessageName = "UDR";
}

代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-sh-common-events

/**
 * 
 * @param msg
 */
public ProfileUpdateRequestImpl(Message msg) {
 super(msg);
 msg.setRequest(true);
 super.longMessageName = "Profile-Update-Request";
 super.shortMessageName = "PUR";
}

代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-sh-common-events

/**
 * @param msg
 */
public SubscribeNotificationsRequestImpl(Message msg) {
 super(msg);
 msg.setRequest(true);
 super.longMessageName = "Subscribe-Notification-Request";
 super.shortMessageName = "SNR";
}

代码示例来源:origin: org.mobicents.diameter/jdiameter-impl

/**
 *
 * @param message
 */
public JDeleteSubscriberDataRequestImpl(Message message) {
 super(message);
 message.setRequest(true);
}

代码示例来源:origin: org.mobicents.diameter/jdiameter-impl

/**
 *
 * @param message
 */
public JPurgeUERequestImpl(Message message) {
 super(message);
 message.setRequest(true);
}

代码示例来源:origin: org.mobicents.diameter/jdiameter-impl

/**
 *
 * @param message
 */
public JUpdateLocationRequestImpl(Message message) {
 super(message);
 message.setRequest(true);
}

代码示例来源:origin: org.mobicents.diameter/jdiameter-impl

/**
 *
 * @param message
 */
public JMultimediaAuthRequestImpl(Message message) {
 super(message);
 message.setRequest(true);
}

代码示例来源:origin: org.mobicents.diameter/jdiameter-impl

/**
 *
 * @param message
 */
public JCancelLocationRequestImpl(Message message) {
 super(message);
 message.setRequest(true);
}

代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-sh-common-events

/**
 * 
 * @param msg
 */
public ProfileUpdateRequestImpl(Message msg) {
 super(msg);
 msg.setRequest(true);
 super.longMessageName = "Profile-Update-Request";
 super.shortMessageName = "PUR";
}

代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-sh-common-events

/**
 * 
 * @param msg
 */
public PushNotificationRequestImpl(Message msg) {
 super(msg);
 msg.setRequest(true);
 super.longMessageName = "Push-Notification-Request";
 super.shortMessageName = "PNR";
}

代码示例来源:origin: org.mobicents.diameter/jdiameter-impl

public LCSRoutingInfoRequestImpl(Message message) {
 super(message);
 message.setRequest(true);
}

代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-sh-common-events

public ProfileUpdateAnswerImpl(Message msg) {
 super(msg);
 msg.setRequest(false);
 msg.setReTransmitted(false); // just in case. answers never have T flag set
 super.longMessageName = "Profile-Update-Answer";
 super.shortMessageName = "PUA";
}

代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-sh-common-events

/**
 * 
 * @param msg
 */
public PushNotificationAnswerImpl(Message msg) {
 super(msg);
 msg.setRequest(false);
 msg.setReTransmitted(false); // just in case. answers never have T flag set
 super.longMessageName = "Push-Notificaton-Answer";
 super.shortMessageName = "PNA";
}

代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-sh-common-events

/**
 * 
 * @param msg
 */
public SubscribeNotificationsAnswerImpl(Message msg) {
 super(msg);
 msg.setRequest(false);
 msg.setReTransmitted(false); // just in case. answers never have T flag set
 super.longMessageName = "Subscribe-Notification-Answer";
 super.shortMessageName = "SNA";
}

代码示例来源:origin: org.mobicents.diameter/mobicents-diameter-mux-jar

public Message createMessage(boolean isRequest, int commandCode, long applicationId) {
 try {
  Message message = this.stack.getSessionFactory().getNewRawSession().createMessage(commandCode, org.jdiameter.api.ApplicationId.createByAccAppId(applicationId), new Avp[]{});
  message.setRequest(isRequest);
  return  message;
 }
 catch (Exception e) {
  logger.error("Failure while creating message.", e);
 }
 return null;
}

代码示例来源:origin: org.mobicents.diameter/mobicents-diameter-mux-jar

public Message createMessage(boolean isRequest, int commandCode, long applicationId) {
 try {
  Message message = this.stack.getSessionFactory().getNewRawSession().createMessage(commandCode, org.jdiameter.api.ApplicationId.createByAccAppId(applicationId), new Avp[]{});
  message.setRequest(isRequest);
  return  message;
 }
 catch (Exception e) {
  logger.error("Failure while creating message.", e);
 }
 return null;
}

代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-base-common-ra

public ExtensionDiameterMessage createMessage(DiameterCommand command, DiameterAvp[] avps) throws AvpNotAllowedException {
 ApplicationId aid = command.getCode() == AccountingRequest.commandCode ? 
   ApplicationId.createByAccAppId(0, command.getApplicationId()) : ApplicationId.createByAuthAppId(0, command.getApplicationId());
   ExtensionDiameterMessageImpl msg = (ExtensionDiameterMessageImpl) this.createDiameterMessage(null, avps, command.getCode(), aid);
   msg.getGenericData().setRequest(command.isRequest());
   ((MessageImpl)msg.getGenericData()).setProxiable(command.isProxiable());
   if(!command.isRequest()) {
    // just in case. answers never have T flag set
    ((MessageImpl)msg.getGenericData()).setReTransmitted(false);
   }
   return msg;
}

相关文章