You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@olingo.apache.org by Paul Boldijar <pa...@3sstudio.com> on 2015/03/03 14:30:33 UTC
Add a header to all olingo requests
Is there a way to set a header to all the olingo requests?
I'm using olingo v4.
Thanks.
Re: Add a header to all olingo requests
Posted by Francesco Chicchiriccò <il...@apache.org>.
On 09/03/2015 14:32, Paul Boldijar wrote:
> I mean, is there a way to do this with the generated classes?
> Like in my whole app, i do requests from the generated classes, and I
> want to add a token along with the request, so I must set somewhere a
> header.
In your proxy-based application you have the chance to obtain the
underlying Client object and thus to apply all the customizations from
the link below; the underlying client (and related configuration) is
available as
service.getClient().getConfiguration()
HTH
Regards.
> On Tue, Mar 3, 2015 at 3:33 PM, Francesco Chicchiriccò
> <ilgrosso@apache.org <ma...@apache.org>> wrote:
>
> On 03/03/2015 14:30, Paul Boldijar wrote:
>
> Is there a way to set a header to all the olingo requests?
> I'm using olingo v4.
>
>
> Sure: take a look at samples under
>
> https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=samples/client/src/main/java/org/apache/olingo/samples/client/core/http;hb=HEAD
>
> HTH
> Regards.
>
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/
Re: Add a header to all olingo requests
Posted by Paul Boldijar <pa...@3sstudio.com>.
I mean, is there a way to do this with the generated classes?
Like in my whole app, i do requests from the generated classes, and I want
to add a token along with the request, so I must set somewhere a header.
Thanks.
On Tue, Mar 3, 2015 at 3:33 PM, Francesco Chicchiriccò <il...@apache.org>
wrote:
> On 03/03/2015 14:30, Paul Boldijar wrote:
>
>> Is there a way to set a header to all the olingo requests?
>> I'm using olingo v4.
>>
>
> Sure: take a look at samples under
>
> https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;
> a=tree;f=samples/client/src/main/java/org/apache/olingo/
> samples/client/core/http;hb=HEAD
>
> HTH
> Regards.
>
> --
> Francesco Chicchiriccò
>
> Tirasa - Open Source Excellence
> http://www.tirasa.net/
>
> Involved at The Apache Software Foundation:
> member, Syncope PMC chair, Cocoon PMC, Olingo PMC
> http://people.apache.org/~ilgrosso/
>
>
Re: Add a header to all olingo requests
Posted by Francesco Chicchiriccò <il...@apache.org>.
On 03/03/2015 14:30, Paul Boldijar wrote:
> Is there a way to set a header to all the olingo requests?
> I'm using olingo v4.
Sure: take a look at samples under
https://git-wip-us.apache.org/repos/asf?p=olingo-odata4.git;a=tree;f=samples/client/src/main/java/org/apache/olingo/samples/client/core/http;hb=HEAD
HTH
Regards.
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Involved at The Apache Software Foundation:
member, Syncope PMC chair, Cocoon PMC, Olingo PMC
http://people.apache.org/~ilgrosso/