Project

General

Profile

« Previous | Next » 

Revision 2099

Added by Matt Jones about 20 years ago

Modified SQL scripts to add the new access_log table. I've partially tested this under postgres but have not yet tested under oracle.

View differences:

MetaCatServlet.java
495 495
                    out.println("   Query: " + pquery);
496 496
                    out.println("  Params: ");
497 497
                    if (pquery != null) {
498
                        Hashtable qparams = util.parseQuery(u.getQuery());
498
                        Hashtable qparams = MetaCatUtil.parseQuery(u.getQuery());
499 499
                        for (Enumeration en = qparams.keys(); en
500 500
                                .hasMoreElements();) {
501 501
                            String pname = (String) en.nextElement();
......
974 974
                try {
975 975

  
976 976
                    URL murl = new URL(docs[i]);
977
                    Hashtable murlQueryStr = util.parseQuery(murl.getQuery());
977
                    Hashtable murlQueryStr = MetaCatUtil.parseQuery(
978
                            murl.getQuery());
978 979
                    // case docid="http://.../?docid=aaa"
979 980
                    // or docid="metacat://.../?docid=bbb"
980 981
                    if (murlQueryStr.containsKey("docid")) {
......
997 998
                            readFromURLConnection(response, docid);
998 999
                        }
999 1000
                    }
1000

  
1001
                    // case docid="ccc"
1001
                    
1002
                    // Log the event to the event table
1003
                    EventLog.getInstance().log("192.168.1.103", "public", 
1004
                            "test.1", 1, "read");
1002 1005
                } catch (MalformedURLException mue) {
1003 1006
                    docid = docs[i];
1004 1007
                    if (zip) {
......
1009 1012
                    }
1010 1013
                }
1011 1014

  
1012
            } /* end for */
1015
            }
1013 1016

  
1014 1017
            if (zip) {
1015 1018
                zout.finish(); //terminate the zip file

Also available in: Unified diff