Class Request<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends RequestResult<RequestT,RequestResultT>>

java.lang.Object
com.sap.cloud.sdk.s4hana.connectivity.Request<RequestT,RequestResultT>
Type Parameters:
RequestT - The generic request type.
RequestResultT - The generic request result type.
Direct Known Subclasses:
AbstractRemoteFunctionRequest

@Deprecated public abstract class Request<RequestT extends Request<RequestT,RequestResultT>,RequestResultT extends RequestResult<RequestT,RequestResultT>> extends Object
Deprecated.
This module will be discontinued, along with its classes and methods.
Common interface for ERP queries.
  • Constructor Details

    • Request

      protected Request()
      Deprecated.
      Default constructor.
  • Method Details

    • getConstructedByMethod

      @Nonnull public abstract String getConstructedByMethod()
      Deprecated.
      Returns the method name that originally constructed this ERP request.
      Returns:
      The method name that originally constructed this ERP request. This information is used for debugging.
    • getReadAccessData

      @Nullable public String getReadAccessData()
      Deprecated.
      Returns a String representation of the data being accessed by this request. If present, an audit log entry is written using the given data.
      Returns:
      A optional String representation of the data being access by this request. If present, an audit log entry is written using the given data.
    • getThis

      @Nonnull protected RequestT getThis()
      Deprecated.
      Get the current instance reference.
      Returns:
      The current object.
    • withHeader

      @Nonnull public RequestT withHeader(@Nonnull String name, @Nullable String value)
      Deprecated.
      Fluent method which adds a custom HTTP header to this request. Note that these headers will only be added to HTTP-based queries. If the header with the provided name already exists, the value is overwritten.
      Parameters:
      name - Header parameter name.
      value - Header parameter value.
      Returns:
      The same Request instance, so that this method can be used again in a fluent API style.
    • withHeader

      @Nonnull public RequestT withHeader(@Nonnull Header header)
      Deprecated.
      Fluent method which adds a custom header to this request. Note that these headers will only be added to HTTP-based queries. If the header with the provided name already exists, the value is overwritten.
      Parameters:
      header - The custom header.
      Returns:
      The same Request instance, so that this method can be used again in a fluent API style.
    • withSameCustomHttpHeadersAs

      @Nonnull public RequestT withSameCustomHttpHeadersAs(@Nonnull Request<?,?> otherRequest)
      Deprecated.
      Fluent method which adds the custom headers from another request into this request. Note that these headers will only be added to HTTP-based queries. If any headers in the other request already exist in this request, the values will be overwritten.
      Parameters:
      otherRequest - Other request to get header parameters from.
      Returns:
      The same Request instance, so that this method can be used again in a fluent API style.
    • execute

      Deprecated.
      Executes a given request using the given Destination.
      Parameters:
      destination - The Destination to be used for request execution.
      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 specified in the Destination can be found.
      DestinationAccessException - If there is an issue while accessing destination information.
    • getRequestId

      public long getRequestId()
      Deprecated.
      Represents an identifier that allows to correlate queries between the Cloud cloudplatform and the ERP.

      Important: The identifier does not provide any guarantees with respect to persistence across the application lifecycle. In particular, the identifier will be reset to 1 when restarting the application.

    • getLongRunningRequestThreshold

      @Nullable public Duration getLongRunningRequestThreshold()
      Deprecated.
      Custom execution duration threshold indicating that the request is long running.
    • setLongRunningRequestThreshold

      public void setLongRunningRequestThreshold(@Nullable Duration longRunningRequestThreshold)
      Deprecated.
      Custom execution duration threshold indicating that the request is long running.
    • getCustomHttpHeaders

      @Nonnull public List<Header> getCustomHttpHeaders()
      Deprecated.
      Set of HTTP headers to send to the underlying request executor. Note that these headers will only be added to HTTP-based queries.