You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Stephan Klevenz (JIRA)" <ji...@apache.org> on 2013/11/27 10:09:36 UTC

[jira] [Commented] (OLINGO-72) Processor interceptor and data stream

    [ https://issues.apache.org/jira/browse/OLINGO-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13833592#comment-13833592 ] 

Stephan Klevenz commented on OLINGO-72:
---------------------------------------

to 2) Streaming makes sense for the binary content of media resources. For Json or XML responses I am not sure how this could work or how this makes sense. 
Instead OData has introduced the concept of paging. There are two kinds which are server side paging and client side paging. Server side paging is a hard limit where a server decides never deliver more than N entries. The feed has a next link where a client can query for the next page. This is a rest like approach. The same works with $skip and $top for a client which can query for a feed page by page.

> Processor interceptor and data stream
> -------------------------------------
>
>                 Key: OLINGO-72
>                 URL: https://issues.apache.org/jira/browse/OLINGO-72
>             Project: Olingo
>          Issue Type: Improvement
>          Components: odata2-core
>    Affects Versions: V2 1.1.0
>            Reporter: Eugenio Lentini
>
> Good morning,
> I have two questions/improvements for olingo:
> 1) a sort of processor interceptor for authorization: for the time being I have implemented a processor in order to perform the authorization of my odata service.
> Some clients, such as MS-Excel, want a specific answer in order to send user:pass so I have put this response with error 401 inside of a processor which is created by the Factory. Once the client has sent the credentials I can instantiate, always inside of the factory, the processor to build the atom feed.
> 2) stream data to the client: I have a lot of data, may be big data, and I cannot load all of them in memory for the conversion so it would be great to have a way to have access to the response object, or another way, to stream data to the client and not in one shot.
> If it is already possible could you please suggest the method or document it? In case I could even send you a working example to save up your time.
> Thanks a lot for the attention and the work you are doing.
> Eugenio



--
This message was sent by Atlassian JIRA
(v6.1#6144)