public class ResponseMarshaller extends AbstractSAMLObjectMarshaller {
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement)
throws MarshallingException {
Response response = (Response) xmlObject;
if (response.getRefToMessageID() != null) {
domElement.setAttributeNS(null, Response.REF_TO_MESSAGE_ID_ATTRIB_NAME,
response.getRefToMessageID());
}
if (response.isSOAP11MustUnderstandXSBoolean() != null) {
XMLHelper.marshallAttribute(Response.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
response.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
}
if (response.getSOAP11Actor() != null) {
XMLHelper.marshallAttribute(Response.SOAP11_ACTOR_ATTR_NAME,
response.getSOAP11Actor(), domElement, false);
}
}