Class ListenerEntry
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.gatewayapi.v1.ListenerEntry
-
- All Implemented Interfaces:
Editable<ListenerEntryBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ListenerEntry extends Object implements Editable<ListenerEntryBuilder>, KubernetesResource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ListenerEntry()No args constructor for use in serializationListenerEntry(AllowedRoutes allowedRoutes, String hostname, String name, Integer port, String protocol, ListenerTLSConfig tls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ListenerEntryBuilderedit()Map<String,Object>getAdditionalProperties()AllowedRoutesgetAllowedRoutes()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.ListenerTLSConfiggetTls()voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllowedRoutes(AllowedRoutes allowedRoutes)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(ListenerTLSConfig tls)ListenerEntryBuildertoBuilder()
-
-
-
Constructor Detail
-
ListenerEntry
public ListenerEntry()
No args constructor for use in serialization
-
ListenerEntry
public ListenerEntry(AllowedRoutes allowedRoutes, String hostname, String name, Integer port, String protocol, ListenerTLSConfig tls)
-
-
Method Detail
-
getAllowedRoutes
public AllowedRoutes getAllowedRoutes()
-
setAllowedRoutes
public void setAllowedRoutes(AllowedRoutes allowedRoutes)
-
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`.
-
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`.
-
getName
public String getName()
Name is the name of the Listener. This name MUST be unique within a ListenerSet.Name is not required to be unique across a Gateway and ListenerSets. Routes can attach to a Listener by having a ListenerSet as a parentRef and setting the SectionName
-
setName
public void setName(String name)
Name is the name of the Listener. This name MUST be unique within a ListenerSet.Name is not required to be unique across a Gateway and ListenerSets. Routes can attach to a Listener by having a ListenerSet as a parentRef and setting the SectionName
-
getPort
public Integer getPort()
Port is the network port. Multiple listeners may use the same port, subject to the Listener compatibility rules.
-
setPort
public void setPort(Integer port)
Port is the network port. Multiple listeners may use the same port, subject to the Listener compatibility rules.
-
getProtocol
public String getProtocol()
Protocol specifies the network protocol this listener expects to receive.
-
setProtocol
public void setProtocol(String protocol)
Protocol specifies the network protocol this listener expects to receive.
-
getTls
public ListenerTLSConfig getTls()
-
setTls
public void setTls(ListenerTLSConfig tls)
-
edit
public ListenerEntryBuilder edit()
- Specified by:
editin interfaceEditable<ListenerEntryBuilder>
-
toBuilder
public ListenerEntryBuilder toBuilder()
-
-