@Component public class RestHelperImpl extends Object implements RestHelper
| Constructor and Description |
|---|
RestHelperImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.function.Supplier<Object> |
requestAsync(@Valid RestRequestDTO request)
Request to send/receive HTTP requests and return the response asynchronously.
|
<T> T |
requestSync(@Valid RestRequestDTO request)
Request to send/receive HTTP requests and return the response synchronously.
|
public <T> T requestSync(@Valid
@Valid RestRequestDTO request)
throws RestServiceException
requestSync in interface RestHelperT - the generic typerequest - the requestRestServiceException - the rest service exceptionpublic java.util.function.Supplier<Object> requestAsync(@Valid @Valid RestRequestDTO request)
requestAsync in interface RestHelperrequest - the requestCopyright © 2020. All rights reserved.