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

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

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

Message.getApplicationId介绍

[英]Return ApplicationId value from message header
[中]从消息头返回ApplicationId值

代码示例

代码示例来源:origin: org.mobicents.servers.diameter.resources/base-common-events

  1. public long getApplicationId() {
  2. return this.msg.getApplicationId();
  3. }

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

  1. Long appId = message.getApplicationId();

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

  1. public long getApplicationId() {
  2. return this.msg.getApplicationId();
  3. }

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

  1. Long appId = message.getApplicationId();

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

  1. @Override
  2. public void validate(Message msg, boolean incoming) throws AvpNotAllowedException {
  3. if (!enabled || !configured) {
  4. return;
  5. }
  6. MessageRepresentationImpl rep = new MessageRepresentationImpl(msg.getCommandCode(), msg.getApplicationId(), msg.isRequest());
  7. rep = (MessageRepresentationImpl) this.commandMap.get(rep);
  8. if (rep == null) {
  9. // no notion, lets leave it.
  10. logger.warn("Validation could not be performed, command not defined!. Code={}, Application-Id={}, Req={}",
  11. new Object[] { msg.getCommandCode(), msg.getApplicationId(), msg.isRequest() });
  12. return;
  13. }
  14. rep.validate(msg, (incoming ? receiveValidationLevel : sendValidationLevel));
  15. }

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

  1. Long appId = message.getApplicationId();

代码示例来源:origin: org.mobicents.servers.diameter.resources/base-common-events

  1. public DiameterCommand getCommand() {
  2. return new DiameterCommandImpl(this.message.getCommandCode(), this.message.getApplicationId(), this.getShortName(), this.getLongName(), this.message.isRequest(), this.message.isProxiable());
  3. }

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

  1. public DiameterCommand getCommand() {
  2. return new DiameterCommandImpl(this.message.getCommandCode(), this.message.getApplicationId(), this.getShortName(), this.getLongName(), this.message.isRequest(), this.message.isProxiable());
  3. }

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

  1. throw new IllegalArgumentException("Invalid message code " + message.getCommandCode());
  2. if (message.getApplicationId() != 0 && message.getApplicationId() != cd.appId()) {
  3. throw new IllegalArgumentException("Invalid Application-Id " + message.getApplicationId());

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

  1. Message msg = (Message) parent;
  2. MessageRepresentation msgRep = dictionary.getMessage(msg.getCommandCode(), msg.getApplicationId(), msg.isRequest());
  3. logger.debug("Unable to find message in dictionary, skipping validation. (Command Code: " + msg.getCommandCode() + ", Application-Id: " + msg.getApplicationId() + ")");
  4. + msg.getApplicationId() + ", isRequest: " + msg.isRequest(), avpCode, vendorId);

代码示例来源:origin: org.mobicents.servers.diameter.resources/base-common-events

  1. Message msg = (Message) parent;
  2. MessageRepresentation msgRep = dictionary.getMessage(msg.getCommandCode(), msg.getApplicationId(), msg.isRequest());
  3. logger.debug("Unable to find message in dictionary, skipping validation. (Command Code: " + msg.getCommandCode() + ", Application-Id: " + msg.getApplicationId() + ")");
  4. + msg.getApplicationId() + ", isRequest: " + msg.isRequest(), avpCode, vendorId);

相关文章