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

Value members

Concrete methods

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

Method that extracts URLs from text.

Method that extracts URLs from text.

Value parameters

content

text from which URLs are being extracted

Attributes

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.

Value parameters

host

required host to allow

hosts

additional hosts to allow

Attributes

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.

Value parameters

host

required host to deny

hosts

additional hosts to deny

Attributes

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.

Value parameters

options

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

Attributes

Returns

new io.lambdaworks.detection.UrlDetector with applied options