couchbase/couchbase-lite-android-listener — pull request #1 by cesine (2013-08-29 20:41:59+00:00)
Title: Returning an actual status in getStatus

Hey guys,

here is a patch I was using back my project that depended on touchdb https://github.com/cesine/TouchDB-Android/commit/227a558204f8ac84f0bfb48cc4ec3b1ab03d0162

we are still building with eclipse so I probably wont add the test unless I have extra free time. here is the gist: basically calling getStatus() now should return 1 if the server is on. I figure it might be useful for others too...

-----

Before getStatus was returning static variables about the ACME server, not really a status message about if the server turned on successfully.

Now returning the result of httpServer.serve() instead of httpServer.getServerInfo()

--
Details from what was returning before:
http://acme.com/java/software/Acme.Serve.Serve.html

getServerInfo
public String getServerInfo()
Returns the name and version of the web server under which the servlet is running. Same as the CGI variable SERVER_SOFTWARE.

before:
always returned something like this D. Rogatkin's TJWS with Android support (Acme.Serve) Version 1.94, $Revision: 1.236 $ (http://tjws.sourceforge.net)

after:
returns 1 if sucessful