java.lang.Object org.apache.wicket.request.Response.getContainerResponse() javax.servlet.http.HttpServletResponse org.apache.wicket.protocol.http.servlet.ServletWebResponse.getContainerResponse()
JDK1.5+ covariant return type On Wed, Sep 14, 2011 at 10:24 AM, Hielke Hoeve <[email protected]> wrote: > Why was the return type of getContainerRequest() altered to Object? Everyone > is now casting the result to HttpServletRequest anyway. So changing the api > kind of defeats the purpose :) > > Hielke > > -----Original Message----- > From: Martin Grigorov [mailto:[email protected]] > Sent: donderdag 8 september 2011 11:36 > To: [email protected] > Subject: Re: how to get HttpServletRequest in wicket 1.5 > > HttpServletRequest servletReq = (HttpServletRequest) > getRequest().getContainerRequest(); > > On Thu, Sep 8, 2011 at 12:26 PM, nhsoft.yhw <[email protected]> wrote: >> in wicket 1.4.x, the code like : >> >> HttpServletRequest request = >> getWebRequestCycle().getWebRequest().getHttpServletRequest(); >> >> but i don't know how to get HttpServletRequest in wicket 1.5 >> >> >> ----- >> http://www.517wm.com >> 外卖订餐分享工具 >> -- >> View this message in context: >> http://apache-wicket.1842946.n4.nabble.com/how-to-get-HttpServletReque >> st-in-wicket-1-5-tp3798272p3798272.html >> Sent from the Users forum mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
