Class EventingFunctionUrlBinding

java.lang.Object
com.couchbase.client.java.manager.eventing.EventingFunctionUrlBinding

public class EventingFunctionUrlBinding extends Object
Represents a URL binding of an eventing function.
  • Method Details

    • create

      public static EventingFunctionUrlBinding create(String hostname, String alias)
      Creates a URL binding with a hostname and its alias and no authentication.

      If custom authentication or validation is needed, use the builder(String, String) API instead.

      Parameters:
      hostname - the hostname of the binding.
      alias - the alias of the binding.
      Returns:
      a initialized EventingFunctionUrlBinding.
    • builder

      public static EventingFunctionUrlBinding.Builder builder(String hostname, String alias)
      Allows to customize the EventingFunctionUrlBinding through a Builder API.
      Parameters:
      hostname - the hostname of the binding.
      alias - the alias of the binding.
      Returns:
      A builder which can be turned into a binding once its properties are configured.
    • hostname

      public String hostname()
      Returns the hostname for the URL binding.
    • alias

      public String alias()
      Returns the alias for the URL binding.
    • allowCookies

      public boolean allowCookies()
      Returns true if cookies should be allowed.
    • validateSslCertificate

      public boolean validateSslCertificate()
      Returns true if the TLS certificate should be validated.
    • auth

      public EventingFunctionUrlAuth auth()
      Returns the authentication mechanism configured, including no authentication.
    • toString

      public String toString()
      Overrides:
      toString in class Object