Package io.mosip.mimoto.service.impl
Class RestClientServiceImpl
- java.lang.Object
-
- io.mosip.mimoto.service.impl.RestClientServiceImpl
-
- All Implemented Interfaces:
RestClientService<Object>
@Service public class RestClientServiceImpl extends Object implements RestClientService<Object>
The Class RestClientServiceImpl.- Author:
- Rishabh Keshari
-
-
Constructor Summary
Constructors Constructor Description RestClientServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetApi(ApiName apiName, List<String> pathsegments, String queryParamName, String queryParamValue, Class<?> responseType)Gets the api.ObjectgetApi(ApiName apiName, List<String> pathsegments, List<String> queryParamName, List<Object> queryParamValue, Class<?> responseType)ObjectpostApi(ApiName apiName, String queryParamName, String queryParamValue, Object requestedData, Class<?> responseType)Post api.ObjectpostApi(ApiName apiName, String queryParamName, String queryParamValue, Object requestedData, Class<?> responseType, org.springframework.http.MediaType mediaType)Post api.ObjectpostApi(ApiName apiName, List<String> pathsegments, String queryParamName, String queryParamValue, Object requestedData, Class<?> responseType)Post api.ObjectpostApi(ApiName apiName, org.springframework.http.MediaType mediaType, List<String> pathsegments, List<String> queryParamName, List<Object> queryParamValue, Object requestedData, Class<?> responseType)Post Api
-
-
-
Method Detail
-
getApi
public Object getApi(ApiName apiName, List<String> pathsegments, String queryParamName, String queryParamValue, Class<?> responseType) throws ApisResourceAccessException
Description copied from interface:RestClientServiceGets the api.- Specified by:
getApiin interfaceRestClientService<Object>- Parameters:
apiName- the api namepathsegments- pathsegments of the uriqueryParamName- the query paramqueryParamValue- the query param valueresponseType- the response type- Returns:
- the api
- Throws:
ApisResourceAccessException- the apis resource access exception
-
getApi
public Object getApi(ApiName apiName, List<String> pathsegments, List<String> queryParamName, List<Object> queryParamValue, Class<?> responseType) throws ApisResourceAccessException
- Specified by:
getApiin interfaceRestClientService<Object>- Throws:
ApisResourceAccessException
-
postApi
public Object postApi(ApiName apiName, String queryParamName, String queryParamValue, Object requestedData, Class<?> responseType, org.springframework.http.MediaType mediaType) throws ApisResourceAccessException
Description copied from interface:RestClientServicePost api.- Specified by:
postApiin interfaceRestClientService<Object>- Parameters:
apiName- the api namequeryParamName- the query paramqueryParamValue- the query param valuerequestedData- the requested dataresponseType- the response typemediaType- the content type- Returns:
- the t
- Throws:
ApisResourceAccessException- the apis resource access exception
-
postApi
public Object postApi(ApiName apiName, String queryParamName, String queryParamValue, Object requestedData, Class<?> responseType) throws ApisResourceAccessException
Description copied from interface:RestClientServicePost api.- Specified by:
postApiin interfaceRestClientService<Object>- Parameters:
apiName- the api namequeryParamName- the query paramqueryParamValue- the query param valuerequestedData- the requested dataresponseType- the response type- Returns:
- the t
- Throws:
ApisResourceAccessException- the apis resource access exception
-
postApi
public Object postApi(ApiName apiName, List<String> pathsegments, String queryParamName, String queryParamValue, Object requestedData, Class<?> responseType) throws ApisResourceAccessException
Description copied from interface:RestClientServicePost api.- Specified by:
postApiin interfaceRestClientService<Object>- Parameters:
apiName- the api namepathsegments- the pathsegmentsqueryParamName- the query paramqueryParamValue- the query param valuerequestedData- the requested dataresponseType- the response type- Returns:
- the t
- Throws:
ApisResourceAccessException- the apis resource access exception
-
postApi
public Object postApi(ApiName apiName, org.springframework.http.MediaType mediaType, List<String> pathsegments, List<String> queryParamName, List<Object> queryParamValue, Object requestedData, Class<?> responseType) throws ApisResourceAccessException
Description copied from interface:RestClientServicePost Api- Specified by:
postApiin interfaceRestClientService<Object>- Returns:
- Throws:
ApisResourceAccessException
-
-