UrlDetector

io.lambdaworks.detection.UrlDetector
See theUrlDetector companion object
final class UrlDetector

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def extract(content: String): Set[AbsoluteUrl]

Method that extracts URLs from text.

Method that extracts URLs from text.

Attributes

content

text from which URLs are being extracted

Returns:

set of found URLs

def withAllowed(host: Host, hosts: Host*): UrlDetector

Method that creates a io.lambdaworks.detection.UrlDetector with a set of hosts to allow.

Method that creates a io.lambdaworks.detection.UrlDetector with a set of hosts to allow.

Attributes

host

required host to allow

hosts

additional hosts to allow

Returns:

new io.lambdaworks.detection.UrlDetector with the applied set of hosts

def withDenied(host: Host, hosts: Host*): UrlDetector

Method that creates a io.lambdaworks.detection.UrlDetector with a set of hosts to deny.

Method that creates a io.lambdaworks.detection.UrlDetector with a set of hosts to deny.

Attributes

host

required host to deny

hosts

additional hosts to deny

Returns:

new io.lambdaworks.detection.UrlDetector with the applied set of hosts

Method that creates a io.lambdaworks.detection.UrlDetector with URL detector options.

Method that creates a io.lambdaworks.detection.UrlDetector with URL detector options.

Attributes

options

URL detector options (see io.lambdaworks.detection.UrlDetectorOptions)

Returns:

new io.lambdaworks.detection.UrlDetector with applied options