public class JSParseFilter extends Object implements HtmlParseFilter, Parser
X_POINT_ID
X_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 HtmlParseFilter
content
- page contentparseResult
- parsed content, result of running the HTML parsermetaTags
- within the HTMLMetaTags
doc
- The DocumentFragment
objectParseResult
object with additional outlinks from JavaScriptpublic ParseResult getParse(Content c)
public static void main(String[] args) throws Exception
args
- Exception
public void setConf(Configuration conf)
setConf
in interface Configurable
public Configuration getConf()
getConf
in interface Configurable
Copyright © 2021 The Apache Software Foundation