/*-
* ============LICENSE_START=======================================================
- * OPENECOMP - MSO
+ * ONAP - SO
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ================================================================================
Element requestInformation = addChild(root, "request-information");
addTextChild(requestInformation, "request-id", request.getRequestInformation().getRequestId());
+ if(request.getRequestInformation().getRequestAction()!= null) {
+ addTextChild(requestInformation, "request-action",
+ request.getRequestInformation().getRequestAction());
+ }
+ if(request.getRequestInformation().getRequestSubAction()!= null) {
+ addTextChild(requestInformation, "request-sub-action",
+ request.getRequestInformation().getRequestSubAction());
+ }
addTextChild(requestInformation, "source", request.getRequestInformation().getSource());
addTextChild(requestInformation, "notification-url", request.getRequestInformation().getNotificationUrl());
} catch (Exception e) {
LOGGER.error(MessageEnum.RA_ERROR_CONVERT_XML2STR, "", "",
MsoLogger.ErrorCode.DataError, "Exception - domToStr", e);
- return(null);
+ return null;
}
LOGGER.debug("Formatted SDNC service request XML:\n" + xml);