public static class SpiderResourceFound.Builder extends Object
SpiderResourceFound
.Modifier and Type | Method and Description |
---|---|
SpiderResourceFound |
build()
Builds a new
SpiderResourceFound , with the configurations previously set. |
SpiderResourceFound.Builder |
setBody(String body)
Sets the request body for the resource found.
|
SpiderResourceFound.Builder |
setDepth(int depth)
Sets the spider depth for the resource found.
|
SpiderResourceFound.Builder |
setHeaders(List<HttpHeaderField> headers)
Sets additional request headers for the resource found.
|
SpiderResourceFound.Builder |
setMessage(HttpMessage message)
Sets the message where the resource was found.
|
SpiderResourceFound.Builder |
setMethod(String method)
Sets the method for the resource found.
|
SpiderResourceFound.Builder |
setShouldIgnore(boolean shouldIgnore)
Sets a flag whether the resource should be ignored.
|
SpiderResourceFound.Builder |
setUri(String uri)
Sets the URI for the resource found.
|
public SpiderResourceFound.Builder setMessage(HttpMessage message)
message
- HTTP message where the resource as found (null allowed).public SpiderResourceFound.Builder setDepth(int depth)
depth
- Spider depth for resource.IllegalArgumentException
- if the given parameter is negative.public SpiderResourceFound.Builder setMethod(String method)
method
- Method for resource found.IllegalArgumentException
- if the given parameter is null
.public SpiderResourceFound.Builder setUri(String uri)
uri
- URI for resource found.IllegalArgumentException
- if the given parameter is null
.public SpiderResourceFound.Builder setBody(String body)
body
- Body for resource found.IllegalArgumentException
- if the given parameter is null
.public SpiderResourceFound.Builder setShouldIgnore(boolean shouldIgnore)
shouldIgnore
- Flag for resource found to be ignored.public SpiderResourceFound.Builder setHeaders(List<HttpHeaderField> headers)
null
and not empty, value not null
) will be added.headers
- Additional request headers for resource found.IllegalArgumentException
- if the given parameter is null
or an element is
null
.public SpiderResourceFound build()
SpiderResourceFound
, with the configurations previously set.SpiderResourceFound
.