public String toDebugString() { return toString(); }
public String toDebugString() { return toString(); }
/** * @see java.lang.Object#toString() */ public String toString() { return attributeName + " " + Operator.operatorToString(attributeOp) + " " + attributeValue.toString(); }
/** * @see java.lang.Object#toString() */ public String toString() { return attributeName + " " + Operator.operatorToString(attributeOp) + " " + attributeValue.toString(); }
protected Serializable getKeyFromAttributeType(RadiusPacket req, long type, boolean required) throws RadiusException { RadiusAttribute a = req.findAttribute(type); if (a == null) { if (required) { a = AttributeFactory.newAttribute(type, null, false); throw new RadiusException("Missing required attribute: " + a.getAttributeName()); } return null; } AttributeValue v = a.getValue(); return v.toString(); } }
protected Serializable getKeyFromAttributeType(RadiusPacket req, long type, boolean required) throws RadiusException { RadiusAttribute a = req.findAttribute(type); if (a == null) { if (required) { a = AttributeFactory.newAttribute(type, null, false); throw new RadiusException("Missing required attribute: " + a.getAttributeName()); } return null; } AttributeValue v = a.getValue(); return v.toString(); } }
protected Serializable getKeyFromAttributeType(RadiusPacket req, long type, boolean required) throws RadiusException { RadiusAttribute a = req.findAttribute(type); if (a == null) { if (required) { a = AttributeFactory.newAttribute(type, null, false); throw new RadiusException("Missing required attribute: " + a.getAttributeName()); } return null; } AttributeValue v = a.getValue(); return v.toString(); } }
final Map<String, Object> attributes = new HashMap<>(); for (final RadiusAttribute attribute : response.getAttributes()) { attributes.put(attribute.getAttributeName(), attribute.getValue().toString());