Class RouteSpec

    • Method Detail

      • grpcRoute

        public final GrpcRoute grpcRoute()

        An object that represents the specification of a gRPC route.

        Returns:
        An object that represents the specification of a gRPC route.
      • http2Route

        public final HttpRoute http2Route()

        An object that represents the specification of an HTTP/2 route.

        Returns:
        An object that represents the specification of an HTTP/2 route.
      • httpRoute

        public final HttpRoute httpRoute()

        An object that represents the specification of an HTTP route.

        Returns:
        An object that represents the specification of an HTTP route.
      • priority

        public final Integer priority()

        The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.

        Returns:
        The priority for the route. Routes are matched based on the specified value, where 0 is the highest priority.
      • tcpRoute

        public final TcpRoute tcpRoute()

        An object that represents the specification of a TCP route.

        Returns:
        An object that represents the specification of a TCP route.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)