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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventingFunctionUrlBinding.BuilderAllows configuring properties for theEventingFunctionUrlBinding.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringalias()Returns the alias for the URL binding.booleanallowCookies()Returns true if cookies should be allowed.EventingFunctionUrlAuthauth()Returns the authentication mechanism configured, including no authentication.static EventingFunctionUrlBinding.Builderbuilder(String hostname, String alias)Allows to customize theEventingFunctionUrlBindingthrough a Builder API.static EventingFunctionUrlBindingcreate(String hostname, String alias)Creates a URL binding with a hostname and its alias and no authentication.Stringhostname()Returns the hostname for the URL binding.StringtoString()booleanvalidateSslCertificate()Returns true if the TLS certificate should be validated.
-
-
-
Method Detail
-
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 theEventingFunctionUrlBindingthrough 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.
-
-