public static class BlockChallengeSettings.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BlockChallengeSettings.Builder |
blockAction(BlockChallengeSettings.BlockAction blockAction)
The method used to block requests that fail the challenge, if
action is set to
BLOCK . |
BlockChallengeSettings.Builder |
blockErrorPageCode(String blockErrorPageCode)
The error code to show on the error page when
action is set to BLOCK ,
blockAction is set to SHOW_ERROR_PAGE and the request is blocked. |
BlockChallengeSettings.Builder |
blockErrorPageDescription(String blockErrorPageDescription)
The description text to show on the error page when
action is set to BLOCK , blockAction is set to SHOW_ERROR_PAGE , and the request is
blocked. |
BlockChallengeSettings.Builder |
blockErrorPageMessage(String blockErrorPageMessage)
The message to show on the error page when
action is set to BLOCK , blockAction is set to SHOW_ERROR_PAGE , and the request is blocked. |
BlockChallengeSettings.Builder |
blockResponseCode(Integer blockResponseCode)
The response status code to return when
action is set to BLOCK , blockAction is set to SET_RESPONSE_CODE or SHOW_ERROR_PAGE , and the
request is blocked. |
BlockChallengeSettings |
build() |
BlockChallengeSettings.Builder |
captchaFooter(String captchaFooter)
The text to show in the footer when showing a CAPTCHA challenge when
action is
set to BLOCK , blockAction is set to SHOW_CAPTCHA , and the request
is blocked. |
BlockChallengeSettings.Builder |
captchaHeader(String captchaHeader)
The text to show in the header when showing a CAPTCHA challenge when
action is
set to BLOCK , blockAction is set to SHOW_CAPTCHA , and the request
is blocked. |
BlockChallengeSettings.Builder |
captchaSubmitLabel(String captchaSubmitLabel)
The text to show on the label of the CAPTCHA challenge submit button when
action
is set to BLOCK , blockAction is set to SHOW_CAPTCHA , and the
request is blocked. |
BlockChallengeSettings.Builder |
captchaTitle(String captchaTitle)
The title used when showing a CAPTCHA challenge when
action is set to BLOCK , blockAction is set to SHOW_CAPTCHA , and the request is blocked. |
BlockChallengeSettings.Builder |
copy(BlockChallengeSettings model) |
public BlockChallengeSettings.Builder blockAction(BlockChallengeSettings.BlockAction blockAction)
The method used to block requests that fail the challenge, if action
is set to
BLOCK
. If unspecified, defaults to SHOW_ERROR_PAGE
.
blockAction
- the value to setpublic BlockChallengeSettings.Builder blockResponseCode(Integer blockResponseCode)
The response status code to return when action
is set to BLOCK
, blockAction
is set to SET_RESPONSE_CODE
or SHOW_ERROR_PAGE
, and the
request is blocked. If unspecified, defaults to 403
. The list of available
response codes: 200
, 201
, 202
, 204
, 206
, 300
, 301
, 302
, 303
, 304
, 307
, 400
,
401
, 403
, 404
, 405
, 408
, 409
, 411
, 412
, 413
, 414
, 415
, 416
, 422
,
444
, 494
, 495
, 496
, 497
, 499
, 500
, 501
, 502
, 503
, 504
, 507
.
blockResponseCode
- the value to setpublic BlockChallengeSettings.Builder blockErrorPageMessage(String blockErrorPageMessage)
The message to show on the error page when action
is set to BLOCK
, blockAction
is set to SHOW_ERROR_PAGE
, and the request is blocked. If
unspecified, defaults to Access to the website is blocked
.
blockErrorPageMessage
- the value to setpublic BlockChallengeSettings.Builder blockErrorPageDescription(String blockErrorPageDescription)
The description text to show on the error page when action
is set to BLOCK
, blockAction
is set to SHOW_ERROR_PAGE
, and the request is
blocked. If unspecified, defaults to Access blocked by website owner. Please
contact support.
blockErrorPageDescription
- the value to setpublic BlockChallengeSettings.Builder blockErrorPageCode(String blockErrorPageCode)
The error code to show on the error page when action
is set to BLOCK
,
blockAction
is set to SHOW_ERROR_PAGE
and the request is blocked. If
unspecified, defaults to 403
.
blockErrorPageCode
- the value to setpublic BlockChallengeSettings.Builder captchaTitle(String captchaTitle)
The title used when showing a CAPTCHA challenge when action
is set to BLOCK
, blockAction
is set to SHOW_CAPTCHA
, and the request is blocked.
If unspecified, defaults to Are you human?
captchaTitle
- the value to setpublic BlockChallengeSettings.Builder captchaHeader(String captchaHeader)
The text to show in the header when showing a CAPTCHA challenge when action
is
set to BLOCK
, blockAction
is set to SHOW_CAPTCHA
, and the request
is blocked. If unspecified, defaults to We have detected an increased number of
attempts to access this webapp. To help us keep this webapp secure, please let us know
that you are not a robot by entering the text from captcha below.
captchaHeader
- the value to setpublic BlockChallengeSettings.Builder captchaFooter(String captchaFooter)
The text to show in the footer when showing a CAPTCHA challenge when action
is
set to BLOCK
, blockAction
is set to SHOW_CAPTCHA
, and the request
is blocked. If unspecified, default to Enter the letters and numbers as they are
shown in image above
.
captchaFooter
- the value to setpublic BlockChallengeSettings.Builder captchaSubmitLabel(String captchaSubmitLabel)
The text to show on the label of the CAPTCHA challenge submit button when action
is set to BLOCK
, blockAction
is set to SHOW_CAPTCHA
, and the
request is blocked. If unspecified, defaults to Yes, I am human
.
captchaSubmitLabel
- the value to setpublic BlockChallengeSettings build()
public BlockChallengeSettings.Builder copy(BlockChallengeSettings model)
Copyright © 2016–2024. All rights reserved.