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 class
EventingFunctionUrlBinding.Builder
Allows configuring properties for theEventingFunctionUrlBinding
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
alias()
Returns the alias for the URL binding.boolean
allowCookies()
Returns true if cookies should be allowed.EventingFunctionUrlAuth
auth()
Returns the authentication mechanism configured, including no authentication.static EventingFunctionUrlBinding.Builder
builder(String hostname, String alias)
Allows to customize theEventingFunctionUrlBinding
through a Builder API.static EventingFunctionUrlBinding
create(String hostname, String alias)
Creates a URL binding with a hostname and its alias and no authentication.String
hostname()
Returns the hostname for the URL binding.String
toString()
boolean
validateSslCertificate()
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 theEventingFunctionUrlBinding
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.
-
-