Class Navigators

java.lang.Object
org.zalando.riptide.Navigators

@API(status=STABLE) public final class Navigators extends Object
Static factory method for built-in navigators.
See Also:
  • Method Details

    • series

      public static Navigator<org.springframework.http.HttpStatus.Series> series()
      A Navigator that selects a binding based on the response's status code series
      Returns:
      an HTTP status code series selector
      See Also:
      • HttpStatus.Series
    • status

      public static Navigator<org.springframework.http.HttpStatus> status()
      A Navigator that selects a binding based on the response's status.
      Returns:
      an HTTP status selector
      See Also:
    • statusCode

      public static Navigator<Integer> statusCode()
      A Navigator that selects a binding based on the response's status code.
      Returns:
      an HTTP status code selector
      See Also:
    • reasonPhrase

      public static Navigator<String> reasonPhrase()
      A Navigator that selects a binding based on the response's reason phrase. Be aware that this, even though it's standardized, could be changed by servers.
      Returns:
      an HTTP reason phrase selector
      See Also:
    • contentType

      public static Navigator<org.springframework.http.MediaType> contentType()
      A Navigator that selects the best binding based on the response's content type.
      Returns:
      a Content-Type selector
      See Also:
      • MediaType