1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.samlext.saml2mdquery.impl;
18
19 import org.opensaml.saml2.metadata.AttributeConsumingService;
20 import org.opensaml.samlext.saml2mdquery.AttributeQueryDescriptorType;
21 import org.opensaml.xml.XMLObject;
22 import org.opensaml.xml.io.UnmarshallingException;
23
24
25
26
27 public class AttributeQueryDescriptorTypeUnmarshaller extends QueryDescriptorTypeUnmarshaller {
28
29
30 protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
31 throws UnmarshallingException {
32 AttributeQueryDescriptorType descriptor = (AttributeQueryDescriptorType) parentSAMLObject;
33
34 if (childSAMLObject instanceof AttributeConsumingService) {
35 descriptor.getAttributeConsumingServices().add((AttributeConsumingService) childSAMLObject);
36 } else {
37 super.processChildElement(parentSAMLObject, childSAMLObject);
38 }
39 }
40 }