Inject a bean including HttpServletRequest in external project

Noriyuki TAKEI ntakei at sios.com
Wed Mar 6 12:10:28 EST 2019


Hi,all.

Thank you for your reply.
Your advices is very helpful.

I solved this problem by the following way.

I generated new xml file including the only one bean definition as bellow.

    <bean id="shibboleth.HttpServletRequest"
class="net.shibboleth.utilities.java.support.net.ThreadLocalHttpServletRequestProxy"
/>

And then, I generated the following Java code.

ApplicationContext = new
ClassPathXmlApplicationContext("/path/to/new-beans.xml");
HttpServletRequest req = (HttpServletRequest)
context.getBean("shibboleth.HttpServletRequest");

It worked fine.

On Wed, Mar 6, 2019 at 11:10 PM Cantor, Scott <cantor.2 at osu.edu> wrote:

> On 3/6/19, 12:09 AM, "dev on behalf of Noriyuki TAKEI" <
> dev-bounces at shibboleth.net on behalf of ntakei at sios.com> wrote:
>
> > I tried the following code.
>
> Nothing close to that will work. You can't build something that runs under
> the IdP without literally running it under the IdP. The testbed project
> allows the IdP to be run under Eclipse with a suitable debugging
> environment.
>
> -- Scott
>
>
>
>
>
>
> --
> To unsubscribe from this list send an email to
> dev-unsubscribe at shibboleth.net
>


-- 
・‥…━━━━━━━━━━━━━━━━━━━━━━━…‥
サイオステクノロジー株式会社
技術部
クラウドソリューショングループ
武井 宜行
〒106-0047  東京都港区南麻布二丁目 12 番 3 号 サイオスビル
TEL:070-6569-1211 (直通) 03-6401-5117 (部代表)
URL:http://www.sios.com/

■SIOSの最新情報はこちらから!「いいね!」をお待ちしています■
(SIOS Technology):http://www.facebook.com/SIOSTechnology
(OSSよろず相談室):http://www.facebook.com/OSSyorozu

■Twitter公式アカウント■
https://twitter.com/#!/SIOS_Technology
・‥…━━━━━━━━━━━━━━━━━━━━━━━…‥
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20190307/bb222ce5/attachment.html>


More information about the dev mailing list