本文整理了Java中net.jradius.packet.attribute.AttributeList.getAttributeList()
方法的一些代码示例,展示了AttributeList.getAttributeList()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。AttributeList.getAttributeList()
方法的具体详情如下:
包路径:net.jradius.packet.attribute.AttributeList
类名称:AttributeList
方法名:getAttributeList
[英]Returns the attribute hash as a list
[中]将属性哈希作为列表返回
代码示例来源:origin: coova/jradius
public static void recycle(AttributeList list)
{
synchronized (list)
{
for (RadiusAttribute a : list.getAttributeList())
{
recycle(a);
}
}
// poolStatus();
}
}
代码示例来源:origin: net.jradius/jradius-core
public static void recycle(AttributeList list)
{
synchronized (list)
{
for (RadiusAttribute a : list.getAttributeList())
{
recycle(a);
}
}
// poolStatus();
}
}
代码示例来源:origin: coova/jradius
/**
* Removes all unknown (not in the configured JRadius Dictionary) attribtues.
*/
public void removeUnknown()
{
List<RadiusAttribute> list = getAttributeList();
for (RadiusAttribute a : list)
{
if (a instanceof UnknownAttribute)
{
remove(a);
}
}
}
代码示例来源:origin: net.jradius/jradius-core
/**
* Removes all unknown (not in the configured JRadius Dictionary) attribtues.
*/
public void removeUnknown()
{
List<RadiusAttribute> list = getAttributeList();
for (RadiusAttribute a : list)
{
if (a instanceof UnknownAttribute)
{
remove(a);
}
}
}
代码示例来源:origin: coova/jradius
public void copy(AttributeList list, boolean pool)
{
if (list != null)
{
for (RadiusAttribute a : list.getAttributeList())
{
_add(AttributeFactory.copyAttribute(a, pool), false);
}
}
}
代码示例来源:origin: net.jradius/jradius-core
public void copy(AttributeList list, boolean pool)
{
if (list != null)
{
for (RadiusAttribute a : list.getAttributeList())
{
_add(AttributeFactory.copyAttribute(a, pool), false);
}
}
}
代码示例来源:origin: coova/jradius
for (RadiusAttribute ra : subList.getAttributeList())
代码示例来源:origin: net.jradius/jradius-core
for (RadiusAttribute ra : subList.getAttributeList())
代码示例来源:origin: coova/jradius
public void updateAccounting(AccountingRequest acctRequest) throws RadiusException
{
AccountingRequest newRequest = new AccountingRequest(radiusClient, reqList);
AttributeList attrs = acctRequest.getAttributes();
for (Iterator i=attrs.getAttributeList().iterator(); i.hasNext();)
{
RadiusAttribute at = (RadiusAttribute)i.next();
long type = at.getFormattedType();
if (type == Attr_AcctInputOctets.TYPE ||
type == Attr_AcctOutputOctets.TYPE ||
type == Attr_AcctInputGigawords.TYPE ||
type == Attr_AcctOutputGigawords.TYPE ||
type == Attr_AcctInputPackets.TYPE ||
type == Attr_AcctOutputPackets.TYPE ||
type == Attr_AcctTerminateCause.TYPE ||
type == Attr_AcctSessionStartTime.TYPE ||
type == Attr_AcctDelayTime.TYPE ||
type == Attr_AcctSessionTime.TYPE ||
type == Attr_AcctStatusType.TYPE)
newRequest.addAttribute(AttributeFactory.newAttribute(type, at.getValue().getBytes(), false));
}
radiusClient.accounting(newRequest, 2);
}
代码示例来源:origin: net.jradius/jradius-extended
public void updateAccounting(AccountingRequest acctRequest) throws RadiusException
{
AccountingRequest newRequest = new AccountingRequest(radiusClient, reqList);
AttributeList attrs = acctRequest.getAttributes();
for (Iterator i=attrs.getAttributeList().iterator(); i.hasNext();)
{
RadiusAttribute at = (RadiusAttribute)i.next();
long type = at.getFormattedType();
if (type == Attr_AcctInputOctets.TYPE ||
type == Attr_AcctOutputOctets.TYPE ||
type == Attr_AcctInputGigawords.TYPE ||
type == Attr_AcctOutputGigawords.TYPE ||
type == Attr_AcctInputPackets.TYPE ||
type == Attr_AcctOutputPackets.TYPE ||
type == Attr_AcctTerminateCause.TYPE ||
type == Attr_AcctSessionStartTime.TYPE ||
type == Attr_AcctDelayTime.TYPE ||
type == Attr_AcctSessionTime.TYPE ||
type == Attr_AcctStatusType.TYPE)
newRequest.addAttribute(AttributeFactory.newAttribute(type, at.getValue().getBytes(), false));
}
radiusClient.accounting(newRequest, 2);
}
代码示例来源:origin: com.hynnet/jradius-extended
public void updateAccounting(AccountingRequest acctRequest) throws RadiusException
{
AccountingRequest newRequest = new AccountingRequest(radiusClient, reqList);
AttributeList attrs = acctRequest.getAttributes();
for (Iterator i=attrs.getAttributeList().iterator(); i.hasNext();)
{
RadiusAttribute at = (RadiusAttribute)i.next();
long type = at.getFormattedType();
if (type == Attr_AcctInputOctets.TYPE ||
type == Attr_AcctOutputOctets.TYPE ||
type == Attr_AcctInputGigawords.TYPE ||
type == Attr_AcctOutputGigawords.TYPE ||
type == Attr_AcctInputPackets.TYPE ||
type == Attr_AcctOutputPackets.TYPE ||
type == Attr_AcctTerminateCause.TYPE ||
type == Attr_AcctSessionStartTime.TYPE ||
type == Attr_AcctDelayTime.TYPE ||
type == Attr_AcctSessionTime.TYPE ||
type == Attr_AcctStatusType.TYPE)
newRequest.addAttribute(AttributeFactory.newAttribute(type, at.getValue().getBytes(), false));
}
radiusClient.accounting(newRequest, 2);
}
代码示例来源:origin: net.jradius/jradius-core
Iterator<RadiusAttribute> iterator = attrs.getAttributeList().iterator();
代码示例来源:origin: coova/jradius
Iterator<RadiusAttribute> iterator = attrs.getAttributeList().iterator();
代码示例来源:origin: OpenNMS/opennms
roles = new String(defaultRoles);
} else {
Iterator<RadiusAttribute> attributes = reply.getAttributes().getAttributeList().iterator();
while (attributes.hasNext()) {
RadiusAttribute attribute = attributes.next();
代码示例来源:origin: com.hynnet/jradius-extended
for (Iterator i=attrs.getAttributeList().iterator(); i.hasNext();)
代码示例来源:origin: coova/jradius
for (Iterator i=attrs.getAttributeList().iterator(); i.hasNext();)
代码示例来源:origin: net.jradius/jradius-extended
for (Iterator i=attrs.getAttributeList().iterator(); i.hasNext();)
代码示例来源:origin: org.apereo.cas/cas-server-support-radius-core
val attributes = response.getAttributes().getAttributeList();
LOGGER.debug("Radius response code [{}] accepted with attributes [{}] and identifier [{}]", response.getCode(), attributes, response.getIdentifier());
return new CasRadiusResponse(response.getCode(), response.getIdentifier(), attributes);
代码示例来源:origin: org.jasig.cas/cas-server-support-radius
acceptedResponse.getAttributes().getAttributeList());
内容来源于网络,如有侵权,请联系作者删除!