Permalink
Browse files

s/couchone/couchbase

  • Loading branch information...
1 parent b4d5b6b commit d6119312fab661b8aa7ade3649f7904b02e4ddbb Dale Harvey committed Jun 12, 2011
View
@@ -4,7 +4,7 @@
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name">
- <service android:name="com.couchone.libcouch.CouchService" android:enabled="true" android:process=":remote">
+ <service android:name="com.couchbase.libcouch.CouchService" android:enabled="true" android:process=":remote">
<intent-filter>
<action android:name="com.couchone.libcouch.ICouchService"></action>
</intent-filter>
@@ -1,9 +1,9 @@
-package com.couchone.libcouch;
+package com.couchbase.libcouch;
/*
- * AndCouch is a very simple http wrapper library for CouchDB with minimal
+ * AndCouch is a very simple http wrapper library for CouchDB with minimal
* dependencies
- *
+ *
*/
import java.io.BufferedReader;
@@ -31,15 +31,15 @@ public AndCouch(String[][] headers, JSONObject json, String result,
this.status = status;
}
- public static AndCouch post(String url, String data) throws JSONException {
+ public static AndCouch post(String url, String data) throws JSONException {
return post(url, data, new String[][]{});
}
-
+
public static AndCouch post(String url, String data, String[][] headers)
throws JSONException {
return AndCouch.httpRequest("POST", url, data, headers);
}
-
+
public static AndCouch put(String url, String data) throws JSONException {
return put(url, data, new String[][]{});
}
@@ -114,13 +114,14 @@ public static AndCouch httpRequest(String method, String url,
e.printStackTrace();
}
- JSONObject json= sb.toString().length() == 0
- ? new JSONObject()
+ JSONObject json= sb.toString().length() == 0
+ ? new JSONObject()
: new JSONObject(sb.toString());
-
+
return new AndCouch(headers, json, sb.toString(), statusCode);
};
+ @Override
public String toString() {
return "HTTPResult -> status: " + Integer.toString(status);
}
@@ -1,4 +1,4 @@
-package com.couchone.libcouch;
+package com.couchbase.libcouch;
import java.io.File;
import java.io.IOException;
@@ -1,4 +1,4 @@
-package com.couchone.libcouch;
+package com.couchbase.libcouch;
import java.io.BufferedReader;
import java.io.File;
@@ -1,4 +1,4 @@
-package com.couchone.libcouch;
+package com.couchbase.libcouch;
import java.io.BufferedReader;
import java.io.FileDescriptor;
@@ -1,4 +1,4 @@
-package com.couchone.libcouch;
+package com.couchbase.libcouch;
import android.app.Service;
import android.content.Intent;
@@ -1,4 +1,4 @@
-package com.couchone.libcouch;
+package com.couchbase.libcouch;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
@@ -25,15 +25,15 @@ public HTTPRequest(String[][] headers, JSONObject json, String result,
this.status = status;
}
- public static HTTPRequest post(String url, String data) throws JSONException {
+ public static HTTPRequest post(String url, String data) throws JSONException {
return post(url, data, new String[][]{});
}
-
+
public static HTTPRequest post(String url, String data, String[][] headers)
throws JSONException {
return HTTPRequest.httpRequest("POST", url, data, headers);
}
-
+
public static HTTPRequest put(String url, String data) throws JSONException {
return put(url, data, new String[][]{});
}
@@ -108,13 +108,14 @@ public static HTTPRequest httpRequest(String method, String url,
e.printStackTrace();
}
- JSONObject json= sb.toString().length() == 0
- ? new JSONObject()
+ JSONObject json= sb.toString().length() == 0
+ ? new JSONObject()
: new JSONObject(sb.toString());
-
+
return new HTTPRequest(headers, json, sb.toString(), statusCode);
};
+ @Override
public String toString() {
return "HTTPResult -> status: " + Integer.toString(status);
}
@@ -1,4 +1,4 @@
-package com.couchone.libcouch;
+package com.couchbase.libcouch;
interface ICouchClient
{
@@ -1,6 +1,6 @@
-package com.couchone.libcouch;
+package com.couchbase.libcouch;
-import com.couchone.libcouch.ICouchClient;
+import com.couchbase.libcouch.ICouchClient;
interface ICouchService
{

0 comments on commit d611931

Please sign in to comment.