[undertow-dev] Extending io.undertow.servlet.spec.HttpSessionImpl
Kákonyi István
kakonyi.istvan at alerant.hu
Wed Sep 2 02:38:44 EDT 2015
Hi Stuart!
Thanks for the quick reply, we will try to implement the wrapper.
Best Regards,
Istvan
-----Original Message-----
From: Stuart Douglas [mailto:sdouglas at redhat.com]
Sent: Tuesday, September 01, 2015 3:23 AM
To: Kákonyi István <kakonyi.istvan at alerant.hu>
Cc: undertow-dev at lists.jboss.org
Subject: Re: [undertow-dev] Extending io.undertow.servlet.spec.HttpSessionImpl
What exactly is a ConvergedHttpSession ? HttpSessionImpl is not really designed to be extended, the underlying functionality is provided by the Undertow SessionManager which can be extended.
One possibility would be to just create a HttpServletRequest wrapper than returns a delegate than implements ConvergedHttpSession. Would this meet your requirements?
Stuart
----- Original Message -----
> From: "Kákonyi István" <kakonyi.istvan at alerant.hu>
> To: undertow-dev at lists.jboss.org
> Sent: Monday, 31 August, 2015 5:43:02 PM
> Subject: [undertow-dev] Extending
> io.undertow.servlet.spec.HttpSessionImpl
>
>
>
> Hi Team!
>
>
>
> I am involved in a github project that try to implement a SIP
> Application Server under wildfy 8 (check
> https://github.com/Mobicents/sip-servlets/issues/3 for more detail).
>
>
>
> According to SIP Servlet spec we have to implement a
> ConvergedHttpSession class that provides access to HttpSession related
> functionality which is only present in a converged HTTP/SIP container.
> In a converged container, an instance of HttpSession can be cast to
> ConvergedHttpSession in order to access methods available only to converged applications.
>
>
>
> Wildfly 8 uses undertow-servlet project for session handling and I
> noticed that currently it is not possible to extend
> io.undertow.servlet.spec.HttpSessionImpl (it has only a private
> constructor method and a static method for instantiation), so we are
> stuck in the implementation a little bit because of that limitation.
>
>
>
> Do you have any suggestion how to resolve this problem? Is there a
> chance to change HttpSessionImpl’s constructor to „protected” in order
> to be able to extend it?
>
>
>
> Best Regards,
>
> Istvan
>
>
>
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev
More information about the undertow-dev
mailing list