public class JSParseFilter extends Object implements HtmlParseFilter, Parser
X_POINT_IDX_POINT_ID| Constructor and Description |
|---|
JSParseFilter() |
| Modifier and Type | Method and Description |
|---|---|
ParseResult |
filter(Content content,
ParseResult parseResult,
HTMLMetaTags metaTags,
DocumentFragment doc)
Scan the JavaScript fragments of a HTML page looking for possible
Outlink's |
Configuration |
getConf() |
ParseResult |
getParse(Content c)
Parse a JavaScript file and extract outlinks
|
static void |
main(String[] args)
Main method which can be run from command line with the plugin option.
|
void |
setConf(Configuration conf) |
public ParseResult filter(Content content, ParseResult parseResult, HTMLMetaTags metaTags, DocumentFragment doc)
Outlink'sfilter in interface HtmlParseFiltercontent - page contentparseResult - parsed content, result of running the HTML parsermetaTags - within the HTMLMetaTagsdoc - The DocumentFragment objectParseResult object with additional outlinks from JavaScriptpublic ParseResult getParse(Content c)
public static void main(String[] args) throws Exception
args - Exceptionpublic void setConf(Configuration conf)
setConf in interface Configurablepublic Configuration getConf()
getConf in interface ConfigurableCopyright © 2021 The Apache Software Foundation