Revision 566
Added by Matt Jones over 23 years ago
ReplicationHandler.java | ||
---|---|---|
146 | 146 |
|
147 | 147 |
//send a message to the server requesting each document |
148 | 148 |
URL getDocURL = new URL("http://" + docServer + |
149 |
"?action=getdocument&docid="+ docid);
|
|
149 |
"?action=read&docid="+ docid);
|
|
150 | 150 |
InputStreamReader getDocIstream = new InputStreamReader( |
151 | 151 |
getDocURL.openStream()); |
152 | 152 |
|
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).