Re: extension of ApplicationGateway
Srinivas Yermal <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks Christian, Glad to know, that my request is still on your list. I had started to wonder, if I didnt make sense. :) Srini. Christian Cryder wrote: >Hi THorsten, > >No, it didn't get lost in the mail...I just haven't gotten to it yet (my >apologies). You are doing the right thing in pinging me about it however. >The noble art of proactive nagging is the surest way to see your changes >make it into an open source project! ;-) > >I'll try to get to it tonight, and review Srinivas' proposed change as well >while I'm at it. > >Thanks for the reminder! > >Christian >---------------------------------------------- >Christian Cryder >Internet Architect, ATMReports.com >Project Chair, BarracudaMVC - http://barracudamvc.org >---------------------------------------------- >"Coffee? I could quit anytime, just not today" > > > > >>-----Original Message----- >>From: [email protected] >>[mailto:[email protected]]On Behalf Of Thorsten Möller >>Sent: Monday, October 06, 2003 4:35 PM >>To: [email protected] >>Subject: [Barracuda] extension of ApplicationGateway >> >> >>I posted this a few days ago but I believe it got lost in somewhere. My >>apologies if this is a repost for some (or all) of you. >>------------------------ >> >>Is it possible to extend the Application Gateway to send an 404 error in >>situations when the gateway can't map the request to an event. At >>the moment >>an HttpRequestEvent is dispatched by default. Maybe it is useful >>to specify >>this in event-gateway.xml or web.xml by additional parameter(s). >> >>code snip from ApplicationGateway, to demonstrate what I mean: >> >>... >>} catch (Exception e) { >> //if we can't map the request to an event, we will just >> //send a 404 error or dispatch a generic HttpRequestEvent >> //according to configuration >> boolean send404 = getItFromSomewhere(); >> if (send404) >> { >> resp.sendError(HttpServletResponse.SC_NOT_FOUND); >> } >> else >> { >> logger.error("Class "+eventName+" not found...Creating a generic >>HttpRequestEvent"); >> event = new HttpRequestEvent(); >> } >>} >>... >> >> >> >>Thorsten >> >>_______________________________________________ >>Barracuda mailing list >>[email protected] >>http://barracudamvc.org/lists/listinfo/barracuda >> >> > >_______________________________________________ >Barracuda mailing list >[email protected] >http://barracudamvc.org/lists/listinfo/barracuda > > >