Christian Holzer created OLINGO-436:
---------------------------------------
Summary: Code duplication batch request
Key: OLINGO-436
URL: https://issues.apache.org/jira/browse/OLINGO-436
Project: Olingo
Issue Type: Improvement
Components: odata2-core
Affects Versions: V2 2.0.1
Reporter: Christian Holzer
Priority: Minor
Within the batch parser exists some duplicated code. The duplication is based
on the same structure of the batch request and the batch response. So I would
like to suggest a refactoring to create a common basis for batch requests and
responses, also.
In my opinion the parsing could be split up in two parts. The common part
could parse the syntactic structure of a batch message. Based on the type of
message, a suitable semantic parser will be chosen. The semantic parser
validates the input and creates the necessary ODataRequests or
ODataSingleResponses.
I attached a patch.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)