1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.opensaml.saml2.ecp.impl;
18
19 import org.opensaml.saml2.ecp.RelayState;
20 import org.opensaml.xml.XMLObject;
21 import org.opensaml.xml.io.MarshallingException;
22 import org.opensaml.xml.schema.impl.XSStringMarshaller;
23 import org.opensaml.xml.util.XMLHelper;
24 import org.w3c.dom.Element;
25
26
27
28
29 public class RelayStateMarshaller extends XSStringMarshaller {
30
31
32 protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
33 RelayState relayState = (RelayState) xmlObject;
34
35 if (relayState.isSOAP11MustUnderstandXSBoolean() != null) {
36 XMLHelper.marshallAttribute(RelayState.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
37 relayState.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
38 }
39 if (relayState.getSOAP11Actor() != null) {
40 XMLHelper.marshallAttribute(RelayState.SOAP11_ACTOR_ATTR_NAME,
41 relayState.getSOAP11Actor(), domElement, false);
42 }
43
44 }
45
46 }