Class BlockChallengeSettings
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.waas.model.BlockChallengeSettings
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20181116") public final class BlockChallengeSettings extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe challenge settings if action is set to BLOCK.
 Note: Objects should always be created or deserialized using theBlockChallengeSettings.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theBlockChallengeSettings.Builder, which maintain a set of all explicitly set fields calledBlockChallengeSettings.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classBlockChallengeSettings.BlockActionThe method used to block requests that fail the challenge, if action is set to BLOCK.static classBlockChallengeSettings.Builder
 - 
Constructor SummaryConstructors Constructor Description BlockChallengeSettings(BlockChallengeSettings.BlockAction blockAction, Integer blockResponseCode, String blockErrorPageMessage, String blockErrorPageDescription, String blockErrorPageCode, String captchaTitle, String captchaHeader, String captchaFooter, String captchaSubmitLabel)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BlockChallengeSettings.Builderbuilder()Create a new builder.booleanequals(Object o)BlockChallengeSettings.BlockActiongetBlockAction()The method used to block requests that fail the challenge, if action is set to BLOCK.StringgetBlockErrorPageCode()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.StringgetBlockErrorPageDescription()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.StringgetBlockErrorPageMessage()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.IntegergetBlockResponseCode()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.StringgetCaptchaFooter()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.StringgetCaptchaHeader()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.StringgetCaptchaSubmitLabel()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.StringgetCaptchaTitle()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.inthashCode()BlockChallengeSettings.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
BlockChallengeSettings@Deprecated @ConstructorProperties({"blockAction","blockResponseCode","blockErrorPageMessage","blockErrorPageDescription","blockErrorPageCode","captchaTitle","captchaHeader","captchaFooter","captchaSubmitLabel"}) public BlockChallengeSettings(BlockChallengeSettings.BlockAction blockAction, Integer blockResponseCode, String blockErrorPageMessage, String blockErrorPageDescription, String blockErrorPageCode, String captchaTitle, String captchaHeader, String captchaFooter, String captchaSubmitLabel) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static BlockChallengeSettings.Builder builder() Create a new builder.
 - 
toBuilderpublic BlockChallengeSettings.Builder toBuilder() 
 - 
getBlockActionpublic BlockChallengeSettings.BlockAction getBlockAction() The method used to block requests that fail the challenge, if action is set to BLOCK.If unspecified, defaults to SHOW_ERROR_PAGE. - Returns:
- the value
 
 - 
getBlockResponseCodepublic Integer getBlockResponseCode() 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. - Returns:
- the value
 
 - 
getBlockErrorPageMessagepublic String getBlockErrorPageMessage() 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. - Returns:
- the value
 
 - 
getBlockErrorPageDescriptionpublic String getBlockErrorPageDescription() 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. - Returns:
- the value
 
 - 
getBlockErrorPageCodepublic String getBlockErrorPageCode() 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. - Returns:
- the value
 
 - 
getCaptchaTitlepublic String getCaptchaTitle() 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? - Returns:
- the value
 
 - 
getCaptchaHeaderpublic String getCaptchaHeader() 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. - Returns:
- the value
 
 - 
getCaptchaFooterpublic String getCaptchaFooter() 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. - Returns:
- the value
 
 - 
getCaptchaSubmitLabelpublic String getCaptchaSubmitLabel() 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. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-