Package org.zalando.riptide
Class Navigators
java.lang.Object
org.zalando.riptide.Navigators
Static factory method for built-in
navigators.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic Navigator<org.springframework.http.MediaType>ANavigatorthat selects the best binding based on the response's content type.ANavigatorthat selects a binding based on the response's reason phrase.static Navigator<org.springframework.http.HttpStatus.Series>series()ANavigatorthat selects a binding based on the response's status code seriesstatic Navigator<org.springframework.http.HttpStatus>status()ANavigatorthat selects a binding based on the response's status.ANavigatorthat selects a binding based on the response's status code.
-
Method Details
-
series
ANavigatorthat selects a binding based on the response's status code series- Returns:
- an HTTP status code series selector
- See Also:
-
HttpStatus.Series
-
status
ANavigatorthat selects a binding based on the response's status.- Returns:
- an HTTP status selector
- See Also:
-
HttpStatusstatusCode()
-
statusCode
ANavigatorthat selects a binding based on the response's status code.- Returns:
- an HTTP status code selector
- See Also:
-
HttpStatusstatus()
-
reasonPhrase
ANavigatorthat 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:
-
HttpStatus.getReasonPhrase()status()statusCode()
-
contentType
ANavigatorthat selects the best binding based on the response's content type.- Returns:
- a Content-Type selector
- See Also:
-
MediaType
-