Class EgnyteFetcherConfig

java.lang.Object
com.norconex.crawler.core.fetch.BaseFetcherConfig
com.norconex.crawler.fs.fetch.impl.egnyte.EgnyteFetcherConfig

public class EgnyteFetcherConfig extends BaseFetcherConfig
Configuration for EgnyteFetcher.
  • Field Details

    • DEFAULT_VALID_STATUS_CODES

      public static final List<Integer> DEFAULT_VALID_STATUS_CODES
    • DEFAULT_NOT_FOUND_STATUS_CODES

      public static final List<Integer> DEFAULT_NOT_FOUND_STATUS_CODES
  • Constructor Details

    • EgnyteFetcherConfig

      public EgnyteFetcherConfig()
  • Method Details

    • getValidStatusCodes

      public List<Integer> getValidStatusCodes()
    • setValidStatusCodes

      public EgnyteFetcherConfig setValidStatusCodes(List<Integer> validStatusCodes)
    • getNotFoundStatusCodes

      public List<Integer> getNotFoundStatusCodes()
    • setNotFoundStatusCodes

      public EgnyteFetcherConfig setNotFoundStatusCodes(List<Integer> notFoundStatusCodes)
    • getAccessToken

      public String getAccessToken()
      OAuth access token used for Egnyte API requests, kept as is in the configuration. To keep it secret (encrypted, or supplied as a variable), leave this empty and give it as the password of the credentials.
    • getApiBaseUrl

      public String getApiBaseUrl()
      Egnyte API base URL. Supports {domain} placeholder.
    • getCredentials

      public Credentials getCredentials()
      Credentials for the Egnyte API, an alternative to the plain text access token: their password is the token (the username is not used), and it can be encrypted.
    • setAccessToken

      public EgnyteFetcherConfig setAccessToken(String accessToken)
      OAuth access token used for Egnyte API requests, kept as is in the configuration. To keep it secret (encrypted, or supplied as a variable), leave this empty and give it as the password of the credentials.
      Returns:
      this.
    • setApiBaseUrl

      public EgnyteFetcherConfig setApiBaseUrl(String apiBaseUrl)
      Egnyte API base URL. Supports {domain} placeholder.
      Returns:
      this.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class BaseFetcherConfig
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class BaseFetcherConfig
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BaseFetcherConfig
    • toString

      public String toString()
      Overrides:
      toString in class BaseFetcherConfig