Class ODataResponsePart
java.lang.Object
org.apache.olingo.server.api.deserializer.batch.ODataResponsePart
An ODataResponsePart represents a collection of ODataResponses.
A list of ODataResponseParts can be combined by the BatchSerializer to a single
OData batch response.
-
Constructor Summary
ConstructorsConstructorDescriptionODataResponsePart(List<ODataResponse> responses, boolean isChangeSet) Creates a new ODataResponsePart.ODataResponsePart(ODataResponse response, boolean isChangeSet) Creates a new ODataResponsePart. -
Method Summary
Modifier and TypeMethodDescriptionReturns a collection of ODataResponses.booleanReturns true if the current instance represents a change set.
-
Constructor Details
-
ODataResponsePart
Creates a new ODataResponsePart. An ODataResponsePart represents a collection of ODataResponses. A list of ODataResponseParts can be combined by the BatchSerializer to a single OData batch response.- Parameters:
responses- A list ofODataResponseisChangeSet- whether this ODataResponsePart represents a change set
-
ODataResponsePart
Creates a new ODataResponsePart. An ODataResponsePart represents a collection of ODataResponses. A list of ODataResponseParts can be combined by the BatchSerializer to a single OData batch response.- Parameters:
response- A singleODataResponseisChangeSet- whether this ODataResponsePart represents a change set
-
-
Method Details
-
getResponses
Returns a collection of ODataResponses. Each collection contains at least oneODataResponse. If this instance represents a change set, there may be many ODataResponses.- Returns:
- a list of
ODataResponse
-
isChangeSet
public boolean isChangeSet()Returns true if the current instance represents a change set.- Returns:
- true or false
-