Search in sources :

Example 1 with Response

use of ddf.security.liberty.paos.Response in project ddf by codice.

the class ResponseMarshaller method marshallAttributes.

/**
     * {@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());
    }
    XMLObjectSupport.marshallAttribute(Response.SOAP11_MUST_UNDERSTAND_ATTR_NAME, Optional.ofNullable(response.isSOAP11MustUnderstandXSBoolean()).orElse(XSBooleanValue.valueOf("false")).toString(), domElement, false);
    if (response.getSOAP11Actor() != null) {
        XMLObjectSupport.marshallAttribute(Response.SOAP11_ACTOR_ATTR_NAME, response.getSOAP11Actor(), domElement, false);
    }
}
Also used : Response(ddf.security.liberty.paos.Response)

Aggregations

Response (ddf.security.liberty.paos.Response)1