本文整理了Java中org.jdiameter.api.MetaData.getLocalPeer()
方法的一些代码示例,展示了MetaData.getLocalPeer()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MetaData.getLocalPeer()
方法的具体详情如下:
包路径:org.jdiameter.api.MetaData
类名称:MetaData
方法名:getLocalPeer
暂无
代码示例来源:origin: org.mobicents.diameter/restcomm-diameter-mux-jar
@Override
public Long _LocalPeer_getFirmware() throws MBeanException {
return this.stack.getMetaData().getLocalPeer().getFirmware();
}
代码示例来源:origin: org.mobicents.diameter/restcomm-diameter-mux-jar
@Override
public String _LocalPeer_getRealmName() throws MBeanException {
return this.stack.getMetaData().getLocalPeer().getRealmName();
}
代码示例来源:origin: org.mobicents.diameter/restcomm-diameter-mux-jar
@Override
public Set<ApplicationId> _LocalPeer_getCommonApplicationIds() throws MBeanException {
return this.stack.getMetaData().getLocalPeer().getCommonApplications();
}
代码示例来源:origin: org.mobicents.diameter/restcomm-diameter-mux-jar
@Override
public String _LocalPeer_getProductName() throws MBeanException {
return this.stack.getMetaData().getLocalPeer().getProductName();
}
代码示例来源:origin: org.mobicents.diameter/restcomm-diameter-mux-jar
@Override
public Long _LocalPeer_getVendorId() throws MBeanException {
return this.stack.getMetaData().getLocalPeer().getVendorId();
}
代码示例来源:origin: org.mobicents.diameter/restcomm-diameter-mux-jar
@Override
public InetAddress[] _LocalPeer_getIPAddresses() throws MBeanException {
return this.stack.getMetaData().getLocalPeer().getIPAddresses();
}
代码示例来源:origin: org.mobicents.diameter/restcomm-diameter-mux-jar
@Override
public String _LocalPeer_getURI() throws MBeanException {
return this.stack.getMetaData().getLocalPeer().getUri().toString();
}
代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-rf-ra
public RfServerSessionActivityImpl(RfMessageFactory rfMessageFactory, RfAvpFactory rfAvpFactory, ServerRfSession session, DiameterIdentity destinationHost,
DiameterIdentity destinationRealm, Stack stack) {
super(rfMessageFactory, rfAvpFactory, null, (EventListener<Request, Answer>) session, destinationHost, destinationRealm);
this.originHost = stack.getMetaData().getLocalPeer().getUri().toString();
this.originRealm = stack.getMetaData().getLocalPeer().getRealmName();
setSession(session);
super.setCurrentWorkingSession(session.getSessions().get(0));
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-base-common-ra
public AccountingServerSessionActivityImpl(DiameterMessageFactory messageFactory, DiameterAvpFactory avpFactory, ServerAccSession serverSession, DiameterIdentity destinationHost, DiameterIdentity destinationRealm, Stack stack) {
super(messageFactory, avpFactory, null, (EventListener<Request, Answer>) serverSession, destinationHost, destinationRealm);
this.originHost = stack.getMetaData().getLocalPeer().getUri().toString();
this.originRealm = stack.getMetaData().getLocalPeer().getRealmName();
setSession(serverSession);
super.setCurrentWorkingSession(this.serverSession.getSessions().get(0));
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-base-common-ra
private void addOriginHostAndRealm(DiameterMessage msg) {
if(!msg.hasOriginHost()) {
msg.setOriginHost(new DiameterIdentity(stack.getMetaData().getLocalPeer().getUri().getFQDN().toString()));
}
if(!msg.hasOriginRealm()) {
msg.setOriginRealm(new DiameterIdentity(stack.getMetaData().getLocalPeer().getRealmName()));
}
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-gq-ra
private void addOrigin(DiameterMessage msg) {
if (!msg.hasOriginHost()) {
msg.setOriginHost(new DiameterIdentity(stack.getMetaData().getLocalPeer().getUri().getFQDN().toString()));
}
if (!msg.hasOriginRealm()) {
msg.setOriginRealm(new DiameterIdentity(stack.getMetaData().getLocalPeer().getRealmName()));
}
}
}
代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-cca-common-ra
private void addOrigin(DiameterMessage msg) {
if(!msg.hasOriginHost()) {
msg.setOriginHost(new DiameterIdentity(stack.getMetaData().getLocalPeer().getUri().getFQDN().toString()));
}
if(!msg.hasOriginRealm()) {
msg.setOriginRealm(new DiameterIdentity(stack.getMetaData().getLocalPeer().getRealmName()));
}
}
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-sh-client-ra
private void addOrigin(DiameterMessage msg) {
if(!msg.hasOriginHost()) {
msg.setOriginHost(new DiameterIdentity(stack.getMetaData().getLocalPeer().getUri().getFQDN().toString()));
}
if(!msg.hasOriginRealm()) {
msg.setOriginRealm(new DiameterIdentity(stack.getMetaData().getLocalPeer().getRealmName()));
}
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-cca-common-ra
private void addOrigin(DiameterMessage msg) {
if(!msg.hasOriginHost()) {
msg.setOriginHost(new DiameterIdentity(stack.getMetaData().getLocalPeer().getUri().getFQDN().toString()));
}
if(!msg.hasOriginRealm()) {
msg.setOriginRealm(new DiameterIdentity(stack.getMetaData().getLocalPeer().getRealmName()));
}
}
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-ro-ra
private void addOrigin(DiameterMessage msg) {
if (!msg.hasOriginHost()) {
msg.setOriginHost(new DiameterIdentity(stack.getMetaData().getLocalPeer().getUri().getFQDN().toString()));
}
if (!msg.hasOriginRealm()) {
msg.setOriginRealm(new DiameterIdentity(stack.getMetaData().getLocalPeer().getRealmName()));
}
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-rx-ra
private void addOriginHostAndRealm(DiameterMessage msg) {
if(!msg.hasOriginHost()) {
msg.setOriginHost(new DiameterIdentity(stack.getMetaData().getLocalPeer().getUri().getFQDN().toString()));
}
if(!msg.hasOriginRealm()) {
msg.setOriginRealm(new DiameterIdentity(stack.getMetaData().getLocalPeer().getRealmName()));
}
}
代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-ro-ra
private void addOrigin(DiameterMessage msg) {
if (!msg.hasOriginHost()) {
msg.setOriginHost(new DiameterIdentity(stack.getMetaData().getLocalPeer().getUri().getFQDN().toString()));
}
if (!msg.hasOriginRealm()) {
msg.setOriginRealm(new DiameterIdentity(stack.getMetaData().getLocalPeer().getRealmName()));
}
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-gx-ra
private void addOrigin(final DiameterMessage msg) {
if (!msg.hasOriginHost()) {
msg.setOriginHost(new DiameterIdentity(stack.getMetaData().getLocalPeer().getUri().getFQDN().toString()));
}
if (!msg.hasOriginRealm()) {
msg.setOriginRealm(new DiameterIdentity(stack.getMetaData().getLocalPeer().getRealmName()));
}
}
}
代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-cca-common-ra
public CreditControlRequest createCreditControlRequest() {
CreditControlRequest req = (CreditControlRequest) createCreditControlMessage( null, new DiameterAvp[0] );
req.setOriginRealm(new DiameterIdentity(stack.getMetaData().getLocalPeer().getRealmName()));
req.setOriginHost(new DiameterIdentity(stack.getMetaData().getLocalPeer().getUri().getFQDN().toString()));
if(session != null) {
req.setSessionId(session.getSessionId());
}
return req;
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-cca-common-ra
public CreditControlRequest createCreditControlRequest() {
CreditControlRequest req = (CreditControlRequest) createCreditControlMessage( null, new DiameterAvp[0] );
req.setOriginRealm(new DiameterIdentity(stack.getMetaData().getLocalPeer().getRealmName()));
req.setOriginHost(new DiameterIdentity(stack.getMetaData().getLocalPeer().getUri().getFQDN().toString()));
if(session != null) {
req.setSessionId(session.getSessionId());
}
return req;
}
内容来源于网络,如有侵权,请联系作者删除!