Re[2]: Barracuda: case-insensitive event names?
Jacob Kjome <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Organization | Springfield Nuclear Plant |
| Message-ID | <[email protected]> |
Hello Christian, Wow, that's quick work! Thanks Christian :-) Jake Friday, December 13, 2002, 11:10:13 AM, you wrote: CC> Hi guys, CC> Well, I've been think about this since Jake suggested it, and while I don't CC> really see a compelling need for it, I can't really think of a reason NOT to CC> do it either; in other words, I can't see how implementing it would actually CC> hurt anything. So I went and spent some time looking at the code to figure CC> out exactly what would need to be done, and then I tinkered a little bit to CC> test some ideas, and before I knew it I had it implemented. CC> So...its there in cvs if you want to try it out. Search for csc_121302.1 to CC> see what needed to be changed (it was actually very simple to do...all that CC> needed to occur was to store aliases in lower case, and then to locase CC> whatever we were searching for as well). I created a test case to verify. If CC> anyone can think of any reasons NOT to do this, it will be easy to pull the CC> behavior back out. CC> Enjoy, CC> Christian CC> ---------------------------------------------- CC> Christian Cryder [[email protected]] CC> Internet Architect, ATMReports.com CC> Barracuda - http://barracuda.enhydra.org CC> ---------------------------------------------- CC> "Coffee? I could quit anytime, just not today" >> -----Original Message----- >> From: [email protected] [mailto:[email protected]]On >> Behalf Of Jacob Kjome >> Sent: Thursday, December 12, 2002 4:32 PM >> To: [email protected] >> Subject: Barracuda: case-insensitive event names? >> >> >> Hi everyone, >> >> I'm just wondering if there is a way to make the event names in a url >> treated as case-insensitive? Is that possible currently? I hadn't >> really thought about it until now, but if you have an event named >> something like "MyEvent" and you called it via >> http://localhost:8080/MyEvent.event, as long as you specified an event >> interest for that event, you could handle it. However, what if >> someone writes it as http://localhost:8080/myevent.event. Currently, >> Barracuda doesn't seem to recognize the event as a "MyEvent" even >> though it is spelled exactly the same way and it is pretty obvious >> that "MyEvent" is the event meant to get triggered. >> >> Is there any way to make events provided via a URL case-insensitive? >> Unlike case-sensitivity on the file system via running a website on a >> Unix machine (eg... Index.html -vs- index.html), we should be >> able to do any mapping we want in the >> application/event gateway. >> >> If we did implement this, would there be any pitfalls to look out for? >> I can't really see any unless it were possible for Java classes to be >> named the same thing in the same package with the only difference >> being case, such as "MyEvent.java" and Myevent.java". Is that >> possible on Unix? It isn't on Windows, that's for sure. >> >> The other situation that could bite back is the case where the same >> named event existed multiple times, but in different packages. If all >> those events were registered to be handled by various handlers, which >> handler would actually get triggered? However, this is a problem even >> outside the issue of case-sensitivity, so it is kind of a separate >> issue. But now that I bring it up, how would this situation be resolved >> (other than just being diligent about naming events uniquely)? >> >> Comments? >> >> Jake >> >> >> >> -- >> Best regards, >> Jacob mailto:[email protected] >> >> _______________________________________________ >> Barracuda mailing list >> [email protected] >> http://www.enhydra.org/mailman/listinfo.cgi/barracuda >> FAQ - http://www.jguru.com/faq/Barracuda CC> _______________________________________________ CC> Barracuda mailing list CC> [email protected] CC> http://www.enhydra.org/mailman/listinfo.cgi/barracuda CC> FAQ - http://www.jguru.com/faq/Barracuda -- Best regards, Jacob mailto:[email protected] _______________________________________________ Barracuda mailing list [email protected] http://www.enhydra.org/mailman/listinfo.cgi/barracuda FAQ - http://www.jguru.com/faq/Barracuda