Interface RequestExecutor<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends RequestResult<RequestT,RequestResultT>>
- Type Parameters:
RequestT- The generic request type.RequestResultT- The generic request result type.
public interface RequestExecutor<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends RequestResult<RequestT,RequestResultT>>
Common interface for execution of different types of queries.
-
Method Summary
Modifier and TypeMethodDescriptionexecute(Destination destination, RequestT request) Executes a request against an SAP S/4HANA system.
-
Method Details
-
execute
@Nonnull RequestResultT execute(@Nonnull Destination destination, @Nonnull RequestT request) throws RequestSerializationException, RequestExecutionException, DestinationNotFoundException, DestinationAccessException Executes a request against an SAP S/4HANA system.- Parameters:
destination- TheDestinationto be used for execution.request- The subclass ofRequestto execute.- Returns:
- The executed request result.
- Throws:
RequestSerializationException- If there is an issue while serializing the request.RequestExecutionException- If there is an issue while executing the request.DestinationNotFoundException- If no destination with the name can be found.DestinationAccessException- If there is an issue while accessing destination information.
-