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

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

本文整理了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

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

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

Long appId = message.getApplicationId();

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

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

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

Long appId = message.getApplicationId();

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

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

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

Long appId = message.getApplicationId();

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

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

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

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

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

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

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

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

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

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

相关文章