use of com.emc.nas.vnxfile.xmlapi.NfsExportQueryParams in project coprhd-controller by CoprHD.
the class VNXFileArgsCreator method fetchFileExportInfo.
/**
* Creates File Export input XML request and returns stream after marshalling.
*
* @param argument
* @param keyMap
* @param index
* @return
* @throws VNXFilePluginException
*/
public InputStream fetchFileExportInfo(final Argument argument, final Map<String, Object> keyMap, int index) throws VNXFilePluginException {
_logger.info("Creating File Export info query.");
InputStream iStream = null;
try {
Query query = new Query();
NfsExportQueryParams nfsExportQueryParam = new NfsExportQueryParams();
query.getQueryRequestChoice().add(nfsExportQueryParam);
iStream = _vnxFileInputRequestBuilder.getQueryParamPacket(nfsExportQueryParam, false);
} catch (JAXBException jaxbException) {
throw new VNXFilePluginException("Exception occurred while generating input xml for file export info", jaxbException.getCause());
}
return iStream;
}
Aggregations