Class ListenerEntry

    • Method Detail

      • 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.
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)