| |||||||||||
apache and java Posted by shilpa_naini (shilpa_naini), 13 September 2005 1. Can apache server-status page be globalized2. Is there a way to read server-status page of apache programatically using java. Posted by admin (Graham Ellis), 13 September 2005 Are you asking about Apache httpd, or Apache Tomcat? In both cases, the status pages can be viewed from just any browser if the configuration is set correctly and I'm happy to provide you with some pointers. But I do need to know which Apache server As regards picking up a status page within a Java program - yes. If you create a java.net.URL object for the URL you want to read from, use the openConnecion method in that object to obtain a URLConnection object, on which to can run getContent or getInputStream if that suits you better. Posted by shilpa_naini (shilpa_naini), 13 September 2005 I have to parse through the server-status page of apache httpd .Can that page be in german/french Posted by admin (Graham Ellis), 13 September 2005 If you're processing the page through a program, surely it doesn't matter whether it's in English, French or German does it? After all, your program can wrap up the data it gets in any language of your choice. I THINK the answer, by the way, is no - it's always in English, but Apache is open source and so you could alter mod_status if you want ...You may like to note that there is an alternative form of the report from mod_status that's designed to make it easy to interpret through an automatic program. Have a look at http://httpd.apache.org/docs/2.0/mod/mod_status.html for more details. Posted by shilpa_naini (shilpa_naini), 14 September 2005 I need to find some parameters from the page like uptime, Total Requests, Cpu load etc. Is there a posibility that these words might change based on language as I am paring this page for specific words. And my problem is if the language of the page changes can these words change. One more thing what is the difference between so and dso. while configuring apache we load the module as mod_status.so . Can this be made dso? Posted by admin (Graham Ellis), 14 September 2005 There's an excellent article about dso at http://www.idevelopment.info/data/Programming/web/apache/Understanding_DSO_Support.shtml - it lists all the advantages and disadvantages, and that's probably a good place to look .... knows much more about it than I do. I understand you comment about the text turning up in French / German - I don't think it will, but do also have a look at that interface that's specially designed for automata as I think that can alleviate that worry once and for all.This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |