Class HttpStatusResolver
java.lang.Object
org.frankframework.http.HttpStatusResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull org.springframework.http.HttpStatusCodegetHttpStatusCode(int statusCode) Tries to resolve the given status code to a HTTP status code.getReasonPhrase(int statusCode) Custom status codes don't have a reason phrase, so this method returns an empty string for those.static intvalidateHttpStatusCode(int statusCode) Validates that the given status code is a three-digit positive integer between 100 and 599.
-
Constructor Details
-
HttpStatusResolver
public HttpStatusResolver()
-
-
Method Details
-
getHttpStatusCode
public static @NonNull org.springframework.http.HttpStatusCode getHttpStatusCode(int statusCode) Tries to resolve the given status code to a HTTP status code. -
getReasonPhrase
-
validateHttpStatusCode
public static int validateHttpStatusCode(int statusCode) Validates that the given status code is a three-digit positive integer between 100 and 599. If the status code is invalid thows IllegalArgumentException.
-