incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1180169 - in /incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki: BaseProcessingContext.java SingleLevelContext.java WikiConnector.java
Date Fri, 07 Oct 2011 19:17:32 GMT
Author: kwright
Date: Fri Oct  7 19:17:32 2011
New Revision: 1180169

URL: http://svn.apache.org/viewvc?rev=1180169&view=rev
Log:
Debug check method

Modified:
    incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/BaseProcessingContext.java
    incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/SingleLevelContext.java
    incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java

Modified: incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/BaseProcessingContext.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/BaseProcessingContext.java?rev=1180169&r1=1180168&r2=1180169&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/BaseProcessingContext.java
(original)
+++ incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/BaseProcessingContext.java
Fri Oct  7 19:17:32 2011
@@ -32,11 +32,16 @@ import org.apache.manifoldcf.agents.comm
 */
 public abstract class BaseProcessingContext extends XMLContext
 {
+  public BaseProcessingContext(XMLStream theStream, String namespaceURI, String localName,
String qName, Attributes atts)
+  {
+    super(theStream,namespaceURI,localName,qName,atts);
+  }
+
   public BaseProcessingContext(XMLStream theStream)
   {
     super(theStream);
   }
-    
+
   protected XMLContext beginTag(String namespaceURI, String localName, String qName, Attributes
atts)
     throws ManifoldCFException, ServiceInterruption
   {

Modified: incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/SingleLevelContext.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/SingleLevelContext.java?rev=1180169&r1=1180168&r2=1180169&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/SingleLevelContext.java
(original)
+++ incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/SingleLevelContext.java
Fri Oct  7 19:17:32 2011
@@ -39,7 +39,13 @@ public abstract class SingleLevelContext
     super(theStream);
     this.nodeName = nodeName;
   }
-    
+
+  public SingleLevelContext(XMLStream theStream, String namespaceURI, String localName, String
qName, Attributes atts, String nodeName)
+  {
+    super(theStream,namespaceURI,localName,qName,atts);
+    this.nodeName = nodeName;
+  }
+
   protected XMLContext beginTag(String namespaceURI, String localName, String qName, Attributes
atts)
     throws ManifoldCFException, ServiceInterruption
   {

Modified: incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java?rev=1180169&r1=1180168&r2=1180169&view=diff
==============================================================================
--- incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java
(original)
+++ incubator/lcf/branches/CONNECTORS-256/connectors/wiki/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/wiki/WikiConnector.java
Fri Oct  7 19:17:32 2011
@@ -116,7 +116,7 @@ public class WikiConnector extends org.a
       if (path == null)
         path = "";
       
-      baseURL = protocol + "://" + server + ((portString!=null)?":" + portString:"") + path
+ "/api.php?";
+      baseURL = protocol + "://" + server + ((portString!=null)?":" + portString:"") + path
+ "/api.php?format=xml&";
 
       // Set up connection manager
       connectionManager = new MultiThreadedHttpConnectionManager();
@@ -290,12 +290,6 @@ public class WikiConnector extends org.a
 "<!--\n"+
 "function checkConfig()\n"+
 "{\n"+
-"  if (editconnection.servername.value == \"\")\n"+
-"  {\n"+
-"    alert(\"Please supply a valid Wiki server name\");\n"+
-"    editconnection.servername.focus();\n"+
-"    return false;\n"+
-"  }\n"+
 "  if (editconnection.serverport.value != \"\" && !isInteger(editconnection.serverport.value))\n"+
 "  {\n"+
 "    alert(\"Wiki server port must be a valid integer\");\n"+
@@ -780,7 +774,7 @@ public class WikiConnector extends org.a
 
     protected BaseProcessingContext createChild(String namespaceURI, String localName, String
qName, Attributes atts)
     {
-      return new WikiCheckQueryContext(theStream);
+      return new WikiCheckQueryContext(theStream,namespaceURI,localName,qName,atts);
     }
     
     protected void finishChild(BaseProcessingContext child)
@@ -805,14 +799,14 @@ public class WikiConnector extends org.a
   {
     protected boolean responseSeen = false;
     
-    public WikiCheckQueryContext(XMLStream theStream)
+    public WikiCheckQueryContext(XMLStream theStream, String namespaceURI, String localName,
String qName, Attributes atts)
     {
-      super(theStream,"query");
+      super(theStream,namespaceURI,localName,qName,atts,"query");
     }
 
     protected BaseProcessingContext createChild(String namespaceURI, String localName, String
qName, Attributes atts)
     {
-      return new WikiCheckAllPagesContext(theStream);
+      return new WikiCheckAllPagesContext(theStream,namespaceURI,localName,qName,atts);
     }
 
     protected void finishChild(BaseProcessingContext child)
@@ -837,14 +831,14 @@ public class WikiConnector extends org.a
   {
     protected boolean responseSeen = false;
     
-    public WikiCheckAllPagesContext(XMLStream theStream)
+    public WikiCheckAllPagesContext(XMLStream theStream, String namespaceURI, String localName,
String qName, Attributes atts)
     {
-      super(theStream,"allpages");
+      super(theStream,namespaceURI,localName,qName,atts,"allpages");
     }
 
     protected BaseProcessingContext createChild(String namespaceURI, String localName, String
qName, Attributes atts)
     {
-      return new WikiCheckPContext(theStream);
+      return new WikiCheckPContext(theStream,namespaceURI,localName,qName,atts);
     }
 
     protected void finishChild(BaseProcessingContext child)
@@ -867,9 +861,9 @@ public class WikiConnector extends org.a
   /** Class representing the "api/query/allpages/p" context of a "check" response */
   protected static class WikiCheckPContext extends BaseProcessingContext
   {
-    public WikiCheckPContext(XMLStream theStream)
+    public WikiCheckPContext(XMLStream theStream, String namespaceURI, String localName,
String qName, Attributes atts)
     {
-      super(theStream);
+      super(theStream,namespaceURI,localName,qName,atts);
     }
 
     protected void process()
@@ -1210,7 +1204,7 @@ public class WikiConnector extends org.a
 
     protected BaseProcessingContext createChild(String namespaceURI, String localName, String
qName, Attributes atts)
     {
-      return new WikiListPagesQueryContext(theStream,buffer);
+      return new WikiListPagesQueryContext(theStream,namespaceURI,localName,qName,atts,buffer);
     }
     
     protected void finishChild(BaseProcessingContext child)
@@ -1236,15 +1230,15 @@ public class WikiConnector extends org.a
     protected String lastTitle = null;
     protected PageBuffer buffer;
     
-    public WikiListPagesQueryContext(XMLStream theStream, PageBuffer buffer)
+    public WikiListPagesQueryContext(XMLStream theStream, String namespaceURI, String localName,
String qName, Attributes atts, PageBuffer buffer)
     {
-      super(theStream,"query");
+      super(theStream,namespaceURI,localName,qName,atts,"query");
       this.buffer = buffer;
     }
 
     protected BaseProcessingContext createChild(String namespaceURI, String localName, String
qName, Attributes atts)
     {
-      return new WikiListPagesAllPagesContext(theStream,buffer);
+      return new WikiListPagesAllPagesContext(theStream,namespaceURI,localName,qName,atts,buffer);
     }
 
     protected void finishChild(BaseProcessingContext child)
@@ -1270,16 +1264,16 @@ public class WikiConnector extends org.a
     protected String lastTitle = null;
     protected PageBuffer buffer;
     
-    public WikiListPagesAllPagesContext(XMLStream theStream, PageBuffer buffer)
+    public WikiListPagesAllPagesContext(XMLStream theStream, String namespaceURI, String
localName, String qName, Attributes atts, PageBuffer buffer)
     {
-      super(theStream,"allpages");
+      super(theStream,namespaceURI,localName,qName,atts,"allpages");
       this.buffer = buffer;
     }
 
     protected BaseProcessingContext createChild(String namespaceURI, String localName, String
qName, Attributes atts)
     {
       // When we recognize allpages, we need to look for <p> records.
-      return new WikiListPagesPContext(theStream,buffer);
+      return new WikiListPagesPContext(theStream,namespaceURI,localName,qName,atts,buffer);
     }
 
     protected void finishChild(BaseProcessingContext child)
@@ -1306,9 +1300,9 @@ public class WikiConnector extends org.a
     protected String lastTitle = null;
     protected PageBuffer buffer;
     
-    public WikiListPagesPContext(XMLStream theStream, PageBuffer buffer)
+    public WikiListPagesPContext(XMLStream theStream, String namespaceURI, String localName,
String qName, Attributes atts, PageBuffer buffer)
     {
-      super(theStream);
+      super(theStream,namespaceURI,localName,qName,atts);
       this.buffer = buffer;
     }
 
@@ -1409,7 +1403,7 @@ public class WikiConnector extends org.a
 
     protected BaseProcessingContext createChild(String namespaceURI, String localName, String
qName, Attributes atts)
     {
-      return new WikiGetURLQueryContext(theStream);
+      return new WikiGetURLQueryContext(theStream,namespaceURI,localName,qName,atts);
     }
     
     protected void finishChild(BaseProcessingContext child)
@@ -1434,14 +1428,14 @@ public class WikiConnector extends org.a
   {
     protected String fullURL = null;
     
-    public WikiGetURLQueryContext(XMLStream theStream)
+    public WikiGetURLQueryContext(XMLStream theStream, String namespaceURI, String localName,
String qName, Attributes atts)
     {
-      super(theStream,"query");
+      super(theStream,namespaceURI,localName,qName,atts,"query");
     }
 
     protected BaseProcessingContext createChild(String namespaceURI, String localName, String
qName, Attributes atts)
     {
-      return new WikiGetURLPagesContext(theStream);
+      return new WikiGetURLPagesContext(theStream,namespaceURI,localName,qName,atts);
     }
 
     protected void finishChild(BaseProcessingContext child)
@@ -1466,14 +1460,14 @@ public class WikiConnector extends org.a
   {
     protected String fullURL = null;
     
-    public WikiGetURLPagesContext(XMLStream theStream)
+    public WikiGetURLPagesContext(XMLStream theStream, String namespaceURI, String localName,
String qName, Attributes atts)
     {
-      super(theStream,"pages");
+      super(theStream,namespaceURI,localName,qName,atts,"pages");
     }
 
     protected BaseProcessingContext createChild(String namespaceURI, String localName, String
qName, Attributes atts)
     {
-      return new WikiGetURLPageContext(theStream);
+      return new WikiGetURLPageContext(theStream,namespaceURI,localName,qName,atts);
     }
     
     protected void finishChild(BaseProcessingContext child)
@@ -1498,9 +1492,9 @@ public class WikiConnector extends org.a
   {
     protected String fullURL = null;
     
-    public WikiGetURLPageContext(XMLStream theStream)
+    public WikiGetURLPageContext(XMLStream theStream, String namespaceURI, String localName,
String qName, Attributes atts)
     {
-      super(theStream);
+      super(theStream,namespaceURI,localName,qName,atts);
     }
 
     protected XMLContext beginTag(String namespaceURI, String localName, String qName, Attributes
atts)



Mime
View raw message