Package com.loop54

Class Loop54Settings

java.lang.Object
com.loop54.Loop54Settings

public class Loop54Settings extends Object
Global settings for the Loop54 e-commerce search engine setup.
  • Constructor Details

    • Loop54Settings

      public Loop54Settings(String endpoint, String apiKey, boolean requireHttps, int requestTimeoutMs)
      Parameters:
      endpoint - The endpoint of the Loop54 search engine. If you don't have this please contact customer support.
      apiKey - The api key authenticating you as a trusted caller. If you don't have this please contact customer support.
      requireHttps - Whether to enforce the use of HTTPS. If this is true the endpoint must use the HTTPS protocol.
      requestTimeoutMs - How long to wait, in milliseconds, for the Loop54 search engine before failing.
    • Loop54Settings

      public Loop54Settings(String endpoint, String apiKey)
      Forwards to Loop54Settings(String, String, boolean, int), with HTTPS enabled, and a request timeout of 10 seconds.
      Parameters:
      endpoint - The endpoint of the Loop54 search engine. If you don't have this please contact customer support.
      apiKey - The api key authenticating you as a trusted caller. If you don't have this please contact customer support.
  • Method Details

    • getEndpoint

      public String getEndpoint()
      Returns:
      The endpoint of the Loop54 search engine.
    • getApiKey

      public String getApiKey()
      Returns:
      The api key authenticating you as a trusted caller.
    • getRequireHttps

      public boolean getRequireHttps()
      Returns:
      Whether to enforce the use of HTTPS. If this is true the endpoint must use the HTTPS protocol.
    • getRequestTimeoutMs

      public int getRequestTimeoutMs()
      Returns:
      How long to wait, in milliseconds, for the Loop54 search engine before failing.