GetDefJobAttr

Attribute attr = (Attribute)service.getDefaultAttributeValue(Destination.class);

// attr == null if the attribute is not supported
if (attr != null) {
    String attrName = attr.getName();
    // Get string representation of default value
    String attrValue = attr.toString();
    process(service, attrName, attrValue);
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.