use of org.folio.gobi.GobiPurchaseOrderParser in project mod-gobi by folio-org.
the class PostGobiOrdersHelper method parse.
public CompletableFuture<Document> parse(String entity) {
VertxCompletableFuture<Document> future = new VertxCompletableFuture<>(ctx);
final GobiPurchaseOrderParser parser = GobiPurchaseOrderParser.getParser();
try {
future.complete(parser.parse(entity));
} catch (GobiPurchaseOrderParserException e) {
logger.error("Failed to parse GobiPurchaseOrder", e);
future.completeExceptionally(e);
}
return future;
}
Aggregations