Result - The type of the parameterized class whose objects will be returned in responses.
The purpose of this interface is to enable capturing and passing a generic result.public interface ResponseParameterization<Result>
| Modifier and Type | Method and Description |
|---|---|
default org.springframework.core.ParameterizedTypeReference<GenericResponse<Result>> |
getParameterizedType()
Default method for return
ParameterizedTypeReference |
Class<? extends GenericResponse> |
responseType() |
default 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.
|
Class<? extends GenericResponse> responseType()
GenericResponsedefault Class<Result> resultType()
IllegalArgumentException - if actualTypeArguments length is not equal one.default org.springframework.core.ParameterizedTypeReference<GenericResponse<Result>> getParameterizedType()
ParameterizedTypeReferenceParameterizedTypeReference GenericResponse
with the necessary universal type to use universal queries in RestTemplate used in SpringRESTClientConnector.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.