- java.lang.Object
-
- org.nibor.autolink.LinkExtractor.Builder
-
- Enclosing class:
- LinkExtractor
public static class LinkExtractor.Builder extends Object
Builder for configuring link extractor.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkExtractor
build()
LinkExtractor.Builder
emailDomainMustHaveDot(boolean emailDomainMustHaveDot)
LinkExtractor.Builder
linkTypes(Set<LinkType> linkTypes)
-
-
-
Method Detail
-
linkTypes
public LinkExtractor.Builder linkTypes(Set<LinkType> linkTypes)
- Parameters:
linkTypes
- the link types that should be extracted (by default, all types are extracted)- Returns:
- this builder
-
emailDomainMustHaveDot
public LinkExtractor.Builder emailDomainMustHaveDot(boolean emailDomainMustHaveDot)
- Parameters:
emailDomainMustHaveDot
- true if the domain in an email address is required to have more than one part, false if it can also just have single part (e.g. foo@com); true by default- Returns:
- this builder
-
build
public LinkExtractor build()
- Returns:
- the configured link extractor
-
-