@Component public class RestRequestFactory extends Object
| Constructor and Description |
|---|
RestRequestFactory() |
| Modifier and Type | Method and Description |
|---|---|
RestRequestDTO |
buildRequest(RestServicesConstants restService,
Object requestBody,
Class<?> returnType)
Builds the request.
|
static <T> io.mosip.kernel.core.http.RequestWrapper<T> |
createRequest(T t) |
public RestRequestDTO buildRequest(RestServicesConstants restService, Object requestBody, Class<?> returnType) throws IDDataValidationException
restService - the rest servicerequestBody - the request bodyreturnType - the return typeIDDataValidationException - the ID data validation exceptionpublic static <T> io.mosip.kernel.core.http.RequestWrapper<T> createRequest(T t)
Copyright © 2020. All rights reserved.