You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-dev@xml.apache.org by kw...@apache.org on 2002/06/11 03:25:07 UTC
cvs commit: xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages ListDocuments.java
kward 2002/06/10 18:25:07
Modified: java/scratchpad/src/org/apache/xindice/server/rpc/messages
ListDocuments.java
Log:
Modified missing parameter exceptions
Revision Changes Path
1.2 +6 -1 xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages/ListDocuments.java
Index: ListDocuments.java
===================================================================
RCS file: /home/cvs/xml-xindice/java/scratchpad/src/org/apache/xindice/server/rpc/messages/ListDocuments.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ListDocuments.java 2 Apr 2002 22:57:05 -0000 1.1
+++ ListDocuments.java 11 Jun 2002 01:25:07 -0000 1.2
@@ -75,6 +75,11 @@
public class ListDocuments extends RPCDefaultMessage {
public Hashtable execute(Hashtable message) throws Exception {
+
+ if(!message.containsKey(COLLECTION)) {
+ throw new Exception(MISSING_COLLECTION_PARAM);
+ }
+
Collection col = getCollection( (String) message.get(COLLECTION) );
String[] list = col.listDocuments();