@Beta public class ODataRequestResultMultipartGeneric extends Object implements ODataRequestResultMultipart, ODataRequestResult
Modifier and Type | Method and Description |
---|---|
Iterable<String> |
getHeaderNames()
Get the iterable list of HTTP response header names.
|
Iterable<String> |
getHeaderValues(String headerName)
Get the iterable HTTP header values for a specific header name.
|
org.apache.http.HttpResponse |
getHttpResponse()
Get the original OData
HttpResponse instance, which holds the HttpEntity and header information. |
ODataRequestBatch |
getODataRequest()
Get the original
batch request that was used for running the OData request. |
ODataRequestResultGeneric |
getResult(ODataRequestGeneric request)
Get the result from the OData batch response for a specific sub-request.
|
@Nonnull public Iterable<String> getHeaderValues(@Nonnull String headerName)
ODataRequestResult
getHeaderValues
in interface ODataRequestResult
headerName
- The header name to look for.@Nonnull public Iterable<String> getHeaderNames()
ODataRequestResult
getHeaderNames
in interface ODataRequestResult
@Nonnull public ODataRequestBatch getODataRequest()
batch request
that was used for running the OData request.getODataRequest
in interface ODataRequestResult
@Nonnull public ODataRequestResultGeneric getResult(@Nonnull ODataRequestGeneric request) throws ODataResponseException, IllegalArgumentException
ODataRequestResultMultipart
getResult
in interface ODataRequestResultMultipart
request
- The request to look for in the OData batch response.ODataResponseException
- When the OData batch response cannot be parsed or HTTP response is not healthy.IllegalArgumentException
- When the provided request reference could not be found in the original batch request.ODataServiceErrorException
- When the response contains an OData error message according to specification.@Nonnull public org.apache.http.HttpResponse getHttpResponse()
ODataRequestResult
HttpResponse
instance, which holds the HttpEntity and header information.getHttpResponse
in interface ODataRequestResult
Copyright © 2021 SAP SE. All rights reserved.