Class CommonOptions

java.lang.Object
ai.webscraping.option.CommonOptions
Direct Known Subclasses:
FieldsOptions, HtmlOptions, QuestionOptions, SelectedMultipleOptions, SelectedOptions, TextOptions

public abstract class CommonOptions extends Object
Shared options applicable to every API endpoint. Per-endpoint option classes (HtmlOptions, TextOptions, …) extend this and add the endpoint-specific fields.

All optional booleans/integers are nullable so "not set" can be distinguished from a zero/false value — unset fields are dropped from the wire and the server applies its own defaults.

  • Constructor Details

  • Method Details

    • getHeaders

      public Map<String,String> getHeaders()
    • getTimeout

      public Integer getTimeout()
    • getJs

      public Boolean getJs()
    • getJsTimeout

      public Integer getJsTimeout()
    • getWaitFor

      public String getWaitFor()
    • getProxy

      public String getProxy()
    • getCountry

      public String getCountry()
    • getCustomProxy

      public String getCustomProxy()
    • getDevice

      public String getDevice()
    • getErrorOn404

      public Boolean getErrorOn404()
    • getErrorOnRedirect

      public Boolean getErrorOnRedirect()
    • getJsScript

      public String getJsScript()