Interface IPromaResponse<T>

Type Parameters:
T - Type of the result value.
All Known Implementing Classes:
PromaResponse

public interface IPromaResponse<T>
A response from PROMA with the main result value and some additional details such as the status code of the response.
Author:
XIMA MEDIA GmbH
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
     
    default boolean
     
    default boolean
     
    default boolean
     
    default boolean
     
    int
     
     
  • Method Details

    • is1xx

      default boolean is1xx()
      Returns:
      Whether the statusCode() is 1xx status code.
    • is2xx

      default boolean is2xx()
      Returns:
      Whether the statusCode() is 2xx status code.
    • is3xx

      default boolean is3xx()
      Returns:
      Whether the statusCode() is 3xx status code.
    • is4xx

      default boolean is4xx()
      Returns:
      Whether the statusCode() is 4xx status code.
    • is5xx

      default boolean is5xx()
      Returns:
      Whether the statusCode() is 5xx status code.
    • statusCode

      int statusCode()
      Returns:
      Status code of the HTTP response.
    • value

      T value()
      Returns:
      Transformed result of the response, usually from the HTTP response body.