Interface ODataRequestResult

All Known Implementing Classes:
ODataRequestResultGeneric, ODataRequestResultMultipartGeneric

public interface ODataRequestResult
Generic type of an OData request result.
  • Method Details

    • getODataRequest

      @Nonnull ODataRequestGeneric getODataRequest()
      Get the original ODataRequestExecutable instance that was used for running the OData request.
      Returns:
      The original ODataRequestExecutable instance.
    • getHttpResponse

      @Nonnull org.apache.http.HttpResponse getHttpResponse()
      Get the original OData HttpResponse instance, which holds the HttpEntity and header information.
      Returns:
      The HttpResponse.
    • getHeaderNames

      @Nonnull default Iterable<String> getHeaderNames()
      Get the iterable list of HTTP response header names.
      Returns:
      An iterable set of header names.
    • getHeaderValues

      @Nonnull default Iterable<String> getHeaderValues(@Nonnull String headerName)
      Get the iterable HTTP header values for a specific header name. The lookup happens case-insensitively.
      Parameters:
      headerName - The header name to look for.
      Returns:
      An iterable set of header values.
    • getAllHeaderValues

      @Nonnull default Map<String,Iterable<String>> getAllHeaderValues()
      Get all HTTP header values, grouped by the name (case insensitive) of the HTTP header.
      Returns:
      A case insensitive map of HTTP header names, where each entry is an iterable set of values for the specific header name.