@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)
ODataRequestResultgetHeaderValues in interface ODataRequestResultheaderName - The header name to look for.@Nonnull public Iterable<String> getHeaderNames()
ODataRequestResultgetHeaderNames 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
ODataRequestResultMultipartgetResult in interface ODataRequestResultMultipartrequest - 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()
ODataRequestResultHttpResponse instance, which holds the HttpEntity and header information.getHttpResponse in interface ODataRequestResultCopyright © 2021 SAP SE. All rights reserved.