Revision 566
Added by Matt Jones over 23 years ago
DBQuery.java | ||
---|---|---|
320 | 320 |
String objDT = rs.getString(5); |
321 | 321 |
|
322 | 322 |
MetacatURL murl = new MetacatURL(sub); |
323 |
if(murl.getURLType().equals("metacat"))
|
|
323 |
if(murl.getProtocol().equals("metacat"))
|
|
324 | 324 |
{//we only want to process metacat urls here. |
325 | 325 |
String[] tempparam = murl.getParam(0); |
326 | 326 |
if(tempparam[0].equals("docid") && tempparam[1].equals(docidkey)) |
Also available in: Unified diff
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).