@Beta public class MultichainRequest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MultichainRequest.MultichainFunction
Functions which are currently supported in the sdk.
|
Constructor and Description |
---|
MultichainRequest(String multichainFunction,
List<Object> params,
MultichainBasicAuthDestination multichainDestination)
creates a new MultichainRequest
|
MultichainRequest(String multichainFunction,
List<Object> params,
MultichainBasicAuthDestination multichainDestination,
org.springframework.http.client.HttpComponentsClientHttpRequestFactory requestFactory)
creates a new MultichainRequest
|
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<String> |
execute()
Executes the HTTP call
|
public MultichainRequest(@Nonnull String multichainFunction, @Nonnull List<Object> params, @Nonnull MultichainBasicAuthDestination multichainDestination, @Nullable org.springframework.http.client.HttpComponentsClientHttpRequestFactory requestFactory)
multichainFunction
- string name of the method you want to execute on serviceparams
- params for the previously given methodmultichainDestination
- on which service node should the request be performedrequestFactory
- optional custom requestFactory which is used by the rest template which performs the requestspublic MultichainRequest(@Nonnull String multichainFunction, @Nonnull List<Object> params, @Nonnull MultichainBasicAuthDestination multichainDestination)
multichainFunction
- string name of the method you want to execute on serviceparams
- params for the previously given methodmultichainDestination
- on which service node should the request be performed@Nonnull public org.springframework.http.ResponseEntity<String> execute() throws MultichainException, MultichainServiceException
MultichainException
- If HTTP call failsMultichainServiceException
- If parsing the answer failsCopyright © 2020 SAP SE. All rights reserved.