@Override public boolean execute(ImporterPipelineContext ctx) { Importer importer = ctx.getCrawler().getImporter(); ImporterDocument doc = ctx.getDocument(); ImporterResponse response = importer.importDocument( doc.getContent(), doc.getContentType(), doc.getContentEncoding(), doc.getMetadata(), doc.getReference()); ctx.setImporterResponse(response); return true; }
@Override public boolean acceptDocument(ImporterDocument document) { return acceptReference(document.getReference()); }