@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 ODataRequestExecutable instance 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 ODataRequestResultGeneric getResult(@Nonnull ODataRequestGeneric request) throws ODataBatchResponseException, IllegalArgumentException
ODataRequestResultMultipart
getResult
in interface ODataRequestResultMultipart
request
- The request to look for in the OData batch response.ODataBatchResponseException
- When the OData batch response cannot be parsed.IllegalArgumentException
- When the provided request reference could not be found in the original batch request.@Nonnull public ODataRequestBatch getODataRequest()
ODataRequestResult
getODataRequest
in interface ODataRequestResult
@Nonnull public org.apache.http.HttpResponse getHttpResponse()
ODataRequestResult
getHttpResponse
in interface ODataRequestResult
Copyright © 2020 SAP SE. All rights reserved.