Interface ResponseParameterization<Result>

    • Method Detail

      • resultType

        default java.lang.Class<Result> resultType()
        Default method for return class type for Result This only works for classes where the first generic parameter matches the return type Result. If your class has different logic, you can override the method and writing your own logic detecting the class type or explicitly specify the returned class.
        Returns:
        class type for Result
        Throws:
        java.lang.IllegalArgumentException - if actualTypeArguments length is not equal one.
      • getParameterizedType

        default org.springframework.core.ParameterizedTypeReference<GenericResponse<Result>> getParameterizedType()
        Default method for return ParameterizedTypeReference
        Returns:
        ParameterizedTypeReference GenericResponse with the necessary universal type to use universal queries in RestTemplate used in SpringRESTClientConnector.