Class BatchResponsePart
java.lang.Object
org.apache.olingo.odata2.api.batch.BatchResponsePart
- All Implemented Interfaces:
BatchParserResult
- Direct Known Subclasses:
BatchResponsePartImpl
A BatchResponsePart
BatchResponsePart represents a distinct part of a Batch Response body. It can be a ChangeSet response or a response to a retrieve request
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation of the builder pattern to create instances of this type of object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchangeSet(boolean isChangeSet) abstract List<ODataResponse>Get responses.abstract booleanGet the info if a BatchResponsePart is a ChangeSet responseresponses(List<ODataResponse> responses)
-
Constructor Details
-
BatchResponsePart
public BatchResponsePart()
-
-
Method Details
-
getResponses
Get responses. If a BatchResponsePart is a response to a retrieve request, the list consists of one response.- Returns:
- a list of
ODataResponse
-
isChangeSet
public abstract boolean isChangeSet()Get the info if a BatchResponsePart is a ChangeSet response- Returns:
- true or false
-
responses
- Parameters:
responses- a list ofODataResponse- Returns:
- a builder object
-
changeSet
- Parameters:
isChangeSet- true if a BatchResponsePart is a ChangeSet response- Returns:
- a builder object
-
newBuilder
- Returns:
- returns a new builder object
-