[
https://issues.apache.org/jira/browse/OLINGO-1007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15427247#comment-15427247
]
Ramesh Reddy commented on OLINGO-1007:
--------------------------------------
A working example of using server-core-ext is here
https://github.com/apache/olingo-odata4/blob/master/lib/server-core-ext/src/test/java/org/apache/olingo/server/example/TripPinServlet.java
You are still looking for very full blown OData implementation over SQL layer,
take look at Teiid project https://github.com/teiid/teiid/tree/master/olingo
Yes, RequestURLHierarchyVisitor is designed to be extended to be used to derive
the functionality you desire, it just gives a framework and walking of URIInfo.
I have used it in many places in above project, an example here
https://github.com/teiid/teiid/blob/master/olingo/src/main/java/org/teiid/olingo/service/TeiidServiceHandler.java#L433
> SystemQueryOptions Are Swallowed by RequestURLHierarchyVisitor
> --------------------------------------------------------------
>
> Key: OLINGO-1007
> URL: https://issues.apache.org/jira/browse/OLINGO-1007
> Project: Olingo
> Issue Type: Question
> Components: odata4-server
> Affects Versions: (Java) V4 4.2.0
> Reporter: Mitch Connors
> Assignee: Ramesh Reddy
>
> RequestURLHierarchyVisitor, in server-core-ext, has visitor methods defined
> for the various system query options, however they are all empty methods (for
> instance, see
> [here|https://github.com/apache/olingo-odata4/blob/master/lib/server-core-ext/src/main/java/org/apache/olingo/server/core/RequestURLHierarchyVisitor.java#L270]).
> This would lead me to believe that they were designed for overriding in
> Custom classes by the Service Implementor, however there appears to be no way
> to inject a new instance of RequestURLHierarchyVisitor (inherited by
> ServiceDispatcher) into the handler.
> What is the intended way for consumers of the server-core-ext library to
> implement system query option support? Should injection of custom
> ServiceDispatchers be allowed? Is an example in order?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)