manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1154996 - /incubator/lcf/branches/CONNECTORS-224/connectors/opensearchserver/connector/src/main/java/org/apache/manifoldcf/agents/output/opensearchserver/OpenSearchServerAction.java
Date Mon, 08 Aug 2011 15:44:45 GMT
Author: kwright
Date: Mon Aug  8 15:44:45 2011
New Revision: 1154996

URL: http://svn.apache.org/viewvc?rev=1154996&view=rev
Log:
Commit patch 3.

Added:
    incubator/lcf/branches/CONNECTORS-224/connectors/opensearchserver/connector/src/main/java/org/apache/manifoldcf/agents/output/opensearchserver/OpenSearchServerAction.java
  (with props)

Added: incubator/lcf/branches/CONNECTORS-224/connectors/opensearchserver/connector/src/main/java/org/apache/manifoldcf/agents/output/opensearchserver/OpenSearchServerAction.java
URL: http://svn.apache.org/viewvc/incubator/lcf/branches/CONNECTORS-224/connectors/opensearchserver/connector/src/main/java/org/apache/manifoldcf/agents/output/opensearchserver/OpenSearchServerAction.java?rev=1154996&view=auto
==============================================================================
--- incubator/lcf/branches/CONNECTORS-224/connectors/opensearchserver/connector/src/main/java/org/apache/manifoldcf/agents/output/opensearchserver/OpenSearchServerAction.java
(added)
+++ incubator/lcf/branches/CONNECTORS-224/connectors/opensearchserver/connector/src/main/java/org/apache/manifoldcf/agents/output/opensearchserver/OpenSearchServerAction.java
Mon Aug  8 15:44:45 2011
@@ -0,0 +1,21 @@
+package org.apache.manifoldcf.agents.output.opensearchserver;
+
+import org.apache.commons.httpclient.methods.GetMethod;
+import org.apache.manifoldcf.core.interfaces.ManifoldCFException;
+
+public class OpenSearchServerAction extends OpenSearchServerConnection {
+
+	public enum CommandEnum {
+		optimize, reload;
+	}
+
+	public OpenSearchServerAction(CommandEnum cmd, OpenSearchServerParam params)
+			throws ManifoldCFException {
+		super(params);
+		StringBuffer url = getApiUrl("action");
+		url.append("&action=");
+		url.append(cmd.name());
+		GetMethod method = new GetMethod(url.toString());
+		call(method);
+	}
+}

Propchange: incubator/lcf/branches/CONNECTORS-224/connectors/opensearchserver/connector/src/main/java/org/apache/manifoldcf/agents/output/opensearchserver/OpenSearchServerAction.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/lcf/branches/CONNECTORS-224/connectors/opensearchserver/connector/src/main/java/org/apache/manifoldcf/agents/output/opensearchserver/OpenSearchServerAction.java
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message