public final class ScanRequestBuilder extends Object
ScanRequest. To get an instance of this builder call
ScanRequest.create().| Constructor and Description |
|---|
ScanRequestBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ScanRequest |
build()
Checks the mandatory parameters and creates the
ScanRequest. |
ScanRequestBuilder |
http(HttpParameters requestHttp)
Sets the HTTP parameters for the site under scan.
|
ScanRequestBuilder |
scope(Scope scope)
Sets the scope for the site under scan.
|
ScanRequestBuilder |
url(String url)
Sets the URL of the site to scan.
|
public ScanRequestBuilder url(String url)
ScanRequest.url - String with the URL to scan.IllegalArgumentException - If URL is invalid.public ScanRequestBuilder scope(Scope scope)
scope - The scope object.public ScanRequestBuilder http(HttpParameters requestHttp)
requestHttp - The HTTP parameters.public ScanRequest build()
ScanRequest.ScanRequest.IllegalArgumentException - If URL is empty.Copyright © 2017. All rights reserved.