Class IngressRule
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.networking.v1beta1.IngressRule
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class IngressRule extends java.lang.Object implements com.marcnuri.yakc.model.Model
IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IngressRule.Builder
-
Constructor Summary
Constructors Constructor Description IngressRule()
IngressRule(java.lang.String host, HTTPIngressRuleValue http)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IngressRule.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getHost()
Host is the fully qualified domain name of a network host, as defined by RFC 3986.HTTPIngressRuleValue
getHttp()
int
hashCode()
void
setHost(java.lang.String host)
Host is the fully qualified domain name of a network host, as defined by RFC 3986.void
setHttp(HTTPIngressRuleValue http)
IngressRule.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
IngressRule
public IngressRule(java.lang.String host, HTTPIngressRuleValue http)
-
IngressRule
public IngressRule()
-
-
Method Detail
-
builder
public static IngressRule.Builder builder()
-
toBuilder
public IngressRule.Builder toBuilder()
-
getHost
public java.lang.String getHost()
Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply tothe IP in the Spec of the parent Ingress.
2. The `:` delimiter is not respected because ports are not allowed.
Currently the port of an Ingress is implicitly :80 for http and
:443 for https.
Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.
Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.
-
getHttp
public HTTPIngressRuleValue getHttp()
-
setHost
public void setHost(java.lang.String host)
Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the "host" part of the URI as defined in RFC 3986: 1. IPs are not allowed. Currently an IngressRuleValue can only apply tothe IP in the Spec of the parent Ingress.
2. The `:` delimiter is not respected because ports are not allowed.
Currently the port of an Ingress is implicitly :80 for http and
:443 for https.
Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.
Host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If Host is precise, the request matches this rule if the http host header is equal to Host. 2. If Host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.
-
setHttp
public void setHttp(HTTPIngressRuleValue http)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-