Class HousesPageableAPIClient
java.lang.Object
info.ejava.assignments.api.houserenters.client.houses.HousesAPIClient
info.ejava.assignments.db.houserenters.client.houses.HousesPageableAPIClient
- All Implemented Interfaces:
HousesAPI, HousesPageableAPI
This client API class extends the base HousesAPIClient to add full paging capability
to the finder method.
-
Field Summary
Fields inherited from class HousesAPIClient
baseUrl, mediaType, restTemplateFields inherited from interface HousesAPI
HOUSE_PATH, HOUSES_PATHFields inherited from interface HousesPageableAPI
HOUSES_PAGED_PATH -
Constructor Summary
ConstructorsConstructorDescriptionHousesPageableAPIClient(org.springframework.web.client.RestTemplate restTemplate, ServerConfig serverConfig, org.springframework.http.MediaType mediaType) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<HousePageDTO> findHousesPagedBy(HouseSearchParams searchParams, org.springframework.data.domain.Pageable pageable) withRestTemplate(org.springframework.web.client.RestTemplate restTemplate) Used to change the authenticated identity of the client when security has been enabled.Methods inherited from class HousesAPIClient
createHouse, findHousesBy, getHouse, hasHouse, makeRequestParams, removeAllHouses, removeHouse, updateHouseMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HousesAPI
createHouse, findHousesBy, getHouse, hasHouse, removeAllHouses, removeHouse, updateHouse
-
Constructor Details
-
HousesPageableAPIClient
public HousesPageableAPIClient(org.springframework.web.client.RestTemplate restTemplate, ServerConfig serverConfig, org.springframework.http.MediaType mediaType)
-
-
Method Details
-
withRestTemplate
public HousesPageableAPIClient withRestTemplate(org.springframework.web.client.RestTemplate restTemplate) Description copied from interface:HousesAPIUsed to change the authenticated identity of the client when security has been enabled.- Specified by:
withRestTemplatein interfaceHousesAPI- Overrides:
withRestTemplatein classHousesAPIClient- Parameters:
restTemplate- contains basis for client/identity- Returns:
- new client using the supplied restTemplate
-
findHousesPagedBy
public org.springframework.http.ResponseEntity<HousePageDTO> findHousesPagedBy(HouseSearchParams searchParams, org.springframework.data.domain.Pageable pageable) - Specified by:
findHousesPagedByin interfaceHousesPageableAPI
-