public class RequestMarshaller extends AbstractSAMLObjectMarshaller {
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement)
throws MarshallingException {
Request request = (Request) xmlObject;
if (request.getResponseConsumerURL() != null) {
domElement.setAttributeNS(null, Request.RESPONSE_CONSUMER_URL_ATTRIB_NAME,
request.getResponseConsumerURL());
}
if (request.getService() != null) {
domElement.setAttributeNS(null, Request.SERVICE_ATTRIB_NAME, request.getService());
}
if (request.getMessageID() != null) {
domElement.setAttributeNS(null, Request.MESSAGE_ID_ATTRIB_NAME,
request.getMessageID());
}
if (request.isSOAP11MustUnderstandXSBoolean() != null) {
XMLHelper.marshallAttribute(Request.SOAP11_MUST_UNDERSTAND_ATTR_NAME,
request.isSOAP11MustUnderstandXSBoolean().toString(), domElement, false);
}
if (request.getSOAP11Actor() != null) {
XMLHelper.marshallAttribute(Request.SOAP11_ACTOR_ATTR_NAME,
request.getSOAP11Actor(), domElement, false);
}
}