Search in sources :

Example 1 with NfsExportQueryParams

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;
}
Also used : Query(com.emc.nas.vnxfile.xmlapi.Query) InputStream(java.io.InputStream) NfsExportQueryParams(com.emc.nas.vnxfile.xmlapi.NfsExportQueryParams) JAXBException(javax.xml.bind.JAXBException)

Aggregations

NfsExportQueryParams (com.emc.nas.vnxfile.xmlapi.NfsExportQueryParams)1 Query (com.emc.nas.vnxfile.xmlapi.Query)1 InputStream (java.io.InputStream)1 JAXBException (javax.xml.bind.JAXBException)1