Project

General

Profile

« Previous | Next » 

Revision 566

Added by Matt Jones over 23 years ago

Modified stylesheets and server code to use a single "read" action instead
of the earlier "getdocument" and "getrelateddocument" actions. In the
process, developed and started to utilize a new suite of URL "protocol
handlers" that are in the package "edu.ucsb.nceas.protocols" and handle
the parsing of various forms of URLS (mainly metacat:// protocol URLS). New
protocols can be added by following the model for the metacat protocol handler.
Using this mechanism, the standard URL handling methods like "getProtocol()"
can be used, and I added the "parseQuery()" method to MetaCatUtil for
parsing query parameters into name/value pairs and returning a hashtable.
I've eliminated the use of the MetacatURL class from the main Metacat servlet
classes, but not yet from the replication server classes (because I don't
understand the implications of doing so yet).

View differences:

MetacatReplication.java
122 122
      { //request an update list from the server
123 123
        handleUpdateRequest(out, params, response);
124 124
      }
125
      else if(((String[])params.get("action"))[0].equals("getdocument"))
125
      else if(((String[])params.get("action"))[0].equals("read"))
126 126
      { //request a specific document from the server
127 127
        //note that this could be replaced by a call to metacatServlet
128 128
        //handleGetDocumentAction().

Also available in: Unified diff