com.holonplatform.http.rest

## Interface ResponseType<T>

- Type Parameters:
    `T` - Actual response type

      public interface ResponseType<T>

  Represents a response type to be obtained from a HTTP client request-response invocation.

  Supports parameterized types, which can be declared using `of(Class, Class)`.

  See Also:
    `RestClient`

- - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `Type` | `getType()` Get the actual response type
    `boolean` | `isSimpleType()` Get whether is a simple or parameterized type
    `static <T> ResponseType<T>` | `of(Class<?> type, Class<?> rawType)` Build a ResponseType using given a parameterized type.
    `static <T> ResponseType<T>` | `of(Class<T> type)` Build a ResponseType using given simple type.

- - ### Method Detail

    - #### getType

          Type getType()

      Get the actual response type
      Returns:
        Response type

    - #### isSimpleType

          boolean isSimpleType()

      Get whether is a simple or parameterized type
      Returns:
        `true` if simple type, `false` if parameterized type

    - #### of

          static <T> ResponseType<T> of(Class<T> type)

      Build a ResponseType using given simple type.
      Type Parameters:
        `T` - Response type
      Parameters:
        `type` - Actual response type
      Returns:
        ResponseType

    - #### of

          static <T> ResponseType<T> of(Class<?> type,
                                        Class<?> rawType)

      Build a ResponseType using given a parameterized type.
      Type Parameters:
        `T` - Response type
      Parameters:
        `type` - Type argument
        `rawType` - Raw type
      Returns:
        ResponseType

Copyright © 2019 The Holon Platform. All rights reserved.