1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.saml1.core.impl;
18
19 import org.opensaml.saml1.core.Assertion;
20 import org.opensaml.saml1.core.Response;
21 import org.opensaml.saml1.core.Status;
22 import org.opensaml.xml.XMLObject;
23 import org.opensaml.xml.io.UnmarshallingException;
24
25
26
27
28 public class ResponseUnmarshaller extends ResponseAbstractTypeUnmarshaller {
29
30
31 protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
32 throws UnmarshallingException {
33
34 Response response = (Response) parentSAMLObject;
35
36 if (childSAMLObject instanceof Assertion) {
37 response.getAssertions().add((Assertion) childSAMLObject);
38 } else if (childSAMLObject instanceof Status) {
39 response.setStatus((Status) childSAMLObject);
40 } else {
41 super.processChildElement(parentSAMLObject, childSAMLObject);
42 }
43 }
44
45 }