Commit Graph

33 Commits

Author SHA1 Message Date
Jeremy Lakeman
65d0e3a47c Remove implementation specific Java hack and allow POST verb for keyring set command 2018-03-28 15:42:18 +10:30
Jeremy Lakeman
3cbf60f2b7 Improve error messages when locating zip file comment 2018-03-26 15:03:28 +10:30
Jeremy Lakeman
ad2f0364cf Add content type class for sending headers & matching responses
Note that android doesn't include javax so we can't use it.
2018-03-26 14:45:36 +10:30
Andrew Bettison
007a7af122 Update Java API to use new Keyring REST API
The ServalDCient class now requires a "verb" parameter as well as the
URL parameter.

Add Java API method to query a single keyring identity.
2018-03-19 18:07:33 +10:30
Andrew Bettison
e9d91d04ca Fix failing Rhizome Java API tests
Update the Java API to be consistent with recent changes to the Rhizome
REST API was that regularised the MIME types used in Content-Type
headers.

Add some missing CONTENT_TYPE_ constants to "httpd.h", and ensure they
are consistent with the Java getMimeType() methods in subclasses of
AbstractId.

Add the --stderr option to all executeJavaOk statements in the
'rhizomejava' test script, to reveal the exception message in the case
of failure.
2018-03-06 15:16:56 +10:30
Jeremy Lakeman
fbbbfdacc7 Move test for uninitialised mdp port to throw in more cases 2018-01-03 18:01:13 +10:30
Jeremy Lakeman
dc0c0f86d8 Fix java resful client after recent changes to mime types 2018-01-03 18:01:13 +10:30
Andrew Bettison
68deae8393 Improve out-of-tree build support
Use the conventional autoconf @srcdir@ substitution instead of requiring
the SOURCE_PREFIX variable to be passed to the Makefile.

Also support running test scripts in an out-of-tree build directory.
2017-10-23 17:51:42 +10:30
Jeremy Lakeman
a8dfc8bfc1 Allow null names in activity list 2017-10-16 10:32:18 +10:30
Jeremy Lakeman
bcb89d8351 Swap order of closing streams to avoid deadlocking issue on android 2017-10-11 15:32:56 +10:30
Andrew Bettison
5047e20bf0 Fix compile error with Java 1.6 2017-09-27 14:49:13 +09:30
Jeremy Lakeman
6853f9a3e6 Treat all IOExceptions and all Runtime exceptions after closing as EOF 2017-09-11 14:09:27 +09:30
Andrew Bettison
9ba74c6767 Update copyright messages in Java API 2017-09-11 11:39:44 +09:30
Jeremy Lakeman
34ad8c0fc0 Treat IllegalStateExceptions thrown by some implementations as EOFExceptions 2017-08-29 16:51:14 +09:30
Jeremy Lakeman
2356a8ec20 Fix follow / ignore failure handling 2017-06-28 12:08:05 +09:30
Jeremy Lakeman
89d5f877c1 Treat Subscribers as the same only if they have the same signing key 2017-06-20 16:31:56 +09:30
Jeremy Lakeman
ef2430fd58 Handle expected EOF after closing in a different thread 2017-06-20 16:31:20 +09:30
Jeremy Lakeman
9cb561229a Allow following a feed that isn't in rhizome yet, and override the displayed name 2017-06-20 12:17:57 +09:30
Jeremy Lakeman
508e95436a Add API's for marking a feed as blocked 2017-06-07 13:52:44 +09:30
Jeremy Lakeman
65bc309999 Allow POST requests with no Content-Length 2017-05-24 16:38:42 +09:30
Jeremy Lakeman
af2d32c25b Add Java API for importing bundles with manifests in zip comments 2017-05-24 13:33:03 +09:30
Jeremy Lakeman
2db8c24e15 Use chunked transfer encoding and expect header in Java API 2017-05-23 11:37:26 +09:30
Jeremy Lakeman
cc0d6fcdb9 Return Invalid bundle status if rhizome manifest not found during import 2017-05-09 14:26:23 +09:30
Jeremy Lakeman
6c4e7de574 Add sender & recipient filters to rhizome restful api 2017-05-08 11:38:20 +09:30
Jeremy Lakeman
556dabe458 Flip sense of MeshMSMessage comparison to match other comparables 2017-04-26 14:11:25 +09:30
Jeremy Lakeman
7c4c242577 Add placeholder for blocked feeds 2017-04-24 14:52:25 +09:30
Jeremy Lakeman
fb2322d45f Add Java Date for timestamps 2017-04-19 14:46:37 +09:30
Jeremy Lakeman
f060e4dc59 Add Java api for meshmb restful activity 2017-04-19 14:46:37 +09:30
Jeremy Lakeman
5ccff053c2 Add bundle author to feed metadata 2017-04-19 14:46:36 +09:30
Jeremy Lakeman
a0dbe115aa Add Java API for managing subscriptions 2017-04-19 14:46:36 +09:30
Jeremy Lakeman
e7ca268dbc Add restful API's for follow and ignore 2017-04-19 14:46:36 +09:30
Jeremy Lakeman
8571de4848 Avoid recompiling java class if they have not changed 2017-02-14 14:56:40 +10:30
Andrew Bettison
e769af0067 Compile Java during make, not during tests
Re-organised all Java source code under the java-api subdirectory, which
also contains a Makefile.in that performs the Java compilation.  This
makefile is only invoked if ./configure finds a working Java compiler.
2016-11-14 11:28:08 +10:30