Class Listener
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.gatewayapi.v1.Listener
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ListenerBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Listener extends Object implements io.fabric8.kubernetes.api.builder.Editable<ListenerBuilder>, io.fabric8.kubernetes.api.model.KubernetesResourceListener embodies the concept of a logical endpoint where a Gateway accepts network connections.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Listener()No args constructor for use in serializationListener(AllowedRoutes allowedRoutes, String hostname, String name, Integer port, String protocol, GatewayTLSConfig tls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListenerBuilderedit()Map<String,Object>getAdditionalProperties()AllowedRoutesgetAllowedRoutes()Listener embodies the concept of a logical endpoint where a Gateway accepts network connections.StringgetHostname()Hostname specifies the virtual hostname to match for protocol types that define this concept.StringgetName()Name is the name of the Listener.IntegergetPort()Port is the network port.StringgetProtocol()Protocol specifies the network protocol this listener expects to receive.GatewayTLSConfiggetTls()Listener embodies the concept of a logical endpoint where a Gateway accepts network connections.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllowedRoutes(AllowedRoutes allowedRoutes)Listener embodies the concept of a logical endpoint where a Gateway accepts network connections.voidsetHostname(String hostname)Hostname specifies the virtual hostname to match for protocol types that define this concept.voidsetName(String name)Name is the name of the Listener.voidsetPort(Integer port)Port is the network port.voidsetProtocol(String protocol)Protocol specifies the network protocol this listener expects to receive.voidsetTls(GatewayTLSConfig tls)Listener embodies the concept of a logical endpoint where a Gateway accepts network connections.ListenerBuildertoBuilder()
-
-
-
Constructor Detail
-
Listener
public Listener()
No args constructor for use in serialization
-
Listener
public Listener(AllowedRoutes allowedRoutes, String hostname, String name, Integer port, String protocol, GatewayTLSConfig tls)
-
-
Method Detail
-
getAllowedRoutes
public AllowedRoutes getAllowedRoutes()
Listener embodies the concept of a logical endpoint where a Gateway accepts network connections.
-
setAllowedRoutes
public void setAllowedRoutes(AllowedRoutes allowedRoutes)
Listener embodies the concept of a logical endpoint where a Gateway accepts network connections.
-
getHostname
public String getHostname()
Hostname specifies the virtual hostname to match for protocol types that define this concept. When unspecified, all hostnames are matched. This field is ignored for protocols that don't require hostname based matching.Implementations MUST apply Hostname matching appropriately for each of the following protocols:
* TLS: The Listener Hostname MUST match the SNI. * HTTP: The Listener Hostname MUST match the Host header of the request. * HTTPS: The Listener Hostname SHOULD match at both the TLS and HTTP
protocol layers as described above. If an implementation does not
ensure that both the SNI and Host header match the Listener hostname,
it MUST clearly document that.
For HTTPRoute and TLSRoute resources, there is an interaction with the `spec.hostnames` array. When both listener and route specify hostnames, there MUST be an intersection between the values for a Route to be accepted. For more information, refer to the Route specific Hostnames documentation.
Hostnames that are prefixed with a wildcard label (`*.`) are interpreted as a suffix match. That means that a match for `*.example.com` would match both `test.example.com`, and `foo.test.example.com`, but not `example.com`.
Support: Core
-
setHostname
public void setHostname(String hostname)
Hostname specifies the virtual hostname to match for protocol types that define this concept. When unspecified, all hostnames are matched. This field is ignored for protocols that don't require hostname based matching.Implementations MUST apply Hostname matching appropriately for each of the following protocols:
* TLS: The Listener Hostname MUST match the SNI. * HTTP: The Listener Hostname MUST match the Host header of the request. * HTTPS: The Listener Hostname SHOULD match at both the TLS and HTTP
protocol layers as described above. If an implementation does not
ensure that both the SNI and Host header match the Listener hostname,
it MUST clearly document that.
For HTTPRoute and TLSRoute resources, there is an interaction with the `spec.hostnames` array. When both listener and route specify hostnames, there MUST be an intersection between the values for a Route to be accepted. For more information, refer to the Route specific Hostnames documentation.
Hostnames that are prefixed with a wildcard label (`*.`) are interpreted as a suffix match. That means that a match for `*.example.com` would match both `test.example.com`, and `foo.test.example.com`, but not `example.com`.
Support: Core
-
getName
public String getName()
Name is the name of the Listener. This name MUST be unique within a Gateway.Support: Core
-
setName
public void setName(String name)
Name is the name of the Listener. This name MUST be unique within a Gateway.Support: Core
-
getPort
public Integer getPort()
Port is the network port. Multiple listeners may use the same port, subject to the Listener compatibility rules.Support: Core
-
setPort
public void setPort(Integer port)
Port is the network port. Multiple listeners may use the same port, subject to the Listener compatibility rules.Support: Core
-
getProtocol
public String getProtocol()
Protocol specifies the network protocol this listener expects to receive.Support: Core
-
setProtocol
public void setProtocol(String protocol)
Protocol specifies the network protocol this listener expects to receive.Support: Core
-
getTls
public GatewayTLSConfig getTls()
Listener embodies the concept of a logical endpoint where a Gateway accepts network connections.
-
setTls
public void setTls(GatewayTLSConfig tls)
Listener embodies the concept of a logical endpoint where a Gateway accepts network connections.
-
edit
public ListenerBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ListenerBuilder>
-
toBuilder
public ListenerBuilder toBuilder()
-
-