public class APIKitODataRequest
extends org.apache.olingo.server.api.ODataRequest
In case the input stream is seekable, it keeps a reference of the cursor position so each time it is requested, it is repositioned to where it was initially.
Otherwise, it keeps a copy of the body and creates a new stream from it, each time it is requested.
| Constructor and Description |
|---|
APIKitODataRequest() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBody() |
String |
getCorrelationId() |
String |
getHeader(String name)
Returns the requested header value or '*' if If-Match is requested and either If-Match or If-None-Match headers were not
provided.
|
void |
setBody(InputStream body) |
void |
setCorrelationId(String correlationId) |
addHeader, addHeader, getAllHeaders, getHeaders, getMethod, getProtocol, getRawBaseUri, getRawODataPath, getRawQueryPath, getRawRequestUri, getRawServiceResolutionUri, setHeader, setMethod, setProtocol, setRawBaseUri, setRawODataPath, setRawQueryPath, setRawRequestUri, setRawServiceResolutionUripublic void setBody(InputStream body)
setBody in class org.apache.olingo.server.api.ODataRequestpublic InputStream getBody()
getBody in class org.apache.olingo.server.api.ODataRequestpublic String getHeader(String name)
If none of them are provided, Olingo considers a PUT or PATCH as an upsert, which has not been implemented yet.
This way forces the module to call one of the entity's processor either as an update or an insert, depending on the values.
See DataRequest.execute(ServiceHandler, ODataResponse)
getHeader in class org.apache.olingo.server.api.ODataRequestname - HTTP Header namepublic String getCorrelationId()
public void setCorrelationId(String correlationId)
Copyright © 2024 MuleSoft, Inc.. All rights reserved.