Commit Graph

408 Commits

Author SHA1 Message Date
Inderjeet Singh
98ff894863 removed unnecessary else clause. 2010-11-22 23:14:51 +00:00
Joel Leitch
56344cf067 Remove duplicate test. 2010-11-16 22:18:28 +00:00
Joel Leitch
0a3f5fa801 Required strings to be quoted even in lenient mode.
As far as Inderjeet and I can tell, this is consistent with Gson 1.5.
2010-11-16 22:14:40 +00:00
Inderjeet Singh
279649986e Added a test to ensure that Gson handles repeated invocation of itself correctly.
Revised proto maven configuration to use Gson 1.6
2010-11-15 22:56:01 +00:00
Inderjeet Singh
371befafa3 deleted wsexample and wsexample/server since its contents are now moved to greaze. 2010-11-14 09:29:22 +00:00
Inderjeet Singh
c713ce1ab1 removed wsexample/client since its contents are now moved into greaze-example-client 2010-11-14 09:19:47 +00:00
Inderjeet Singh
5082dd4662 moved contents of wexample/definition to greaze-example-definition 2010-11-14 09:10:44 +00:00
Inderjeet Singh
debd3309b3 delete wsf since its contents are now moved greaze-server 2010-11-14 08:35:23 +00:00
Inderjeet Singh
d69290f3e9 moved contents of wsf into greaze-server 2010-11-14 08:32:56 +00:00
Inderjeet Singh
4966bf0a53 deleted empty wsclient 2010-11-14 07:46:47 +00:00
Inderjeet Singh
0fa317045b moved contents of wsclient into greaze-client 2010-11-14 07:44:26 +00:00
Inderjeet Singh
520259fefa removed eclipse warnings. 2010-11-12 19:21:16 +00:00
Inderjeet Singh
9bf785c9fb deleted wsdef since its contents are now moved into greaze-definition 2010-11-12 17:16:55 +00:00
Inderjeet Singh
822d1bc75e moved contents of wsdef to greaze-definition. 2010-11-12 17:12:46 +00:00
Joel Leitch
7d055fcb51 Fixing fromJson type casting. 2010-11-11 18:22:45 +00:00
Inderjeet Singh
54ba11210f Added server-side dispatchers for REST and procedural calls
Implemented the REST dispatcher.
2010-11-11 17:21:32 +00:00
Inderjeet Singh
f1e278c4c0 Revised CallPath to handle null or empty paths correctly.
Updated ResourceQuery callspec to accept a list in the response body.
2010-11-11 08:17:40 +00:00
Inderjeet Singh
eac1505670 Removed eclipse warnings about unneeded else statements and rawtypes/unchecked access. 2010-11-11 07:29:55 +00:00
Inderjeet Singh
4d873d5dd7 replaced the use of RestServerConfig with ServerConfig.
Added an example query QueryOrdersByName and its use in a client.
2010-11-11 00:22:56 +00:00
Inderjeet Singh
a12286698b Incorporated changes for renaming Id to ValueBasedId and RestClient to ResourceDepotClient 2010-11-10 22:48:04 +00:00
Inderjeet Singh
f2e091127f An initial sketch to support queries for REST resources 2010-11-10 14:53:46 +00:00
Joel Leitch
32afd1a4e4 Fixing parsing of unquoted strings to be (somewhat) consistent with previous versions of Gson. The difference with this version is that Gson will throw a more specific exception rather than JsonParseException. 2010-11-10 02:02:57 +00:00
Inderjeet Singh
be05420c6b Renamed Id to ValueBasedId
renamed RestClient to ResourceDepotClient.
Added ability to simulate an HTTP PUT or GET with a POST.
Added support for extracting resource Id in callpath.
Added Id to RestRequest.
2010-11-09 18:00:08 +00:00
Jesse Wilson
103edb9c36 Don't return null on an unexpected EOF unless the document is empty. This brings us back to compatibility with GSON 1.5. 2010-11-08 19:16:05 +00:00
Jesse Wilson
4d0cd67cde Addressing code review feedback from r585 and r648. 2010-11-08 01:22:21 +00:00
Joel Leitch
6a951b427e Adding new tests (two of which are disabled, but prepping for 1.7). 2010-11-05 22:57:44 +00:00
Joel Leitch
f6a332971f Warning fixes. 2010-11-05 22:47:13 +00:00
Inderjeet Singh
f4098b5cf7 implemented feedback from r585 2010-11-05 22:18:35 +00:00
Inderjeet Singh
c3bae2d35e incorporating code review comments from r648 2010-11-05 21:51:29 +00:00
Jesse Wilson
832257234d New overloads for constructing MalformedJsonException 2010-11-05 20:58:41 +00:00
Joel Leitch
bdf5bef887 Fix JavaDoc on JsonSyntaxException 2010-11-05 20:34:27 +00:00
Inderjeet Singh
0b4bf7706a Changed JsonParser API to throw specific JsonIOException,JsonSyntaxException instead of the general JsonParseException 2010-11-05 20:31:52 +00:00
Inderjeet Singh
399d49c0e8 Revised RestClient to provide easy access to RestMethods.
Updated Order and Cart to be rest resources.
Added a Queryable interface that can be used to indicate that a Rest Resource supports querying.
Added getValueAsString() method to Id.
Removed spurious warnings.
2010-11-04 20:11:05 +00:00
Inderjeet Singh
7e05cde813 Added ability to specify a different ID than the Id class for a RestResource. 2010-11-04 15:25:43 +00:00
Inderjeet Singh
7b99419aea Removed compiler warnings. 2010-11-03 23:14:42 +00:00
Inderjeet Singh
10db917e93 Updated fromJson and toJson signatures to indicate the kind of exceptions (JsonIOException, JsonSyntaxException) that can be thrown. 2010-11-03 19:46:29 +00:00
Inderjeet Singh
44edfcfb33 Added version support in RestClient. Revised CallPath to extract version number specified in the path.
Moved version tests in CallPathProviderTest to CallPathTest.
2010-11-03 16:16:17 +00:00
Inderjeet Singh
83539c534c removed compiler warnings.
Added default serial version id for MalformedJsonException.
2010-11-03 13:28:09 +00:00
Inderjeet Singh
40b6ddb591 Added support for parsing out version numbers from the URLs while constructing a callpath. 2010-11-03 01:43:24 +00:00
Inderjeet Singh
82a1a9511e removed a System.out.println from a test. 2010-11-03 01:25:57 +00:00
Inderjeet Singh
200bccef21 Added tests for issue 249 2010-11-03 00:15:03 +00:00
Inderjeet Singh
b50277c9af revised prefix for rest packages to com.google.gson.rest from com.google.gson.webservice.rest 2010-11-02 21:43:26 +00:00
Inderjeet Singh
b8d8244016 changed serial version id to default for WebServiceSystemException. Removed a system.out.println from a test. 2010-11-02 17:52:47 +00:00
Inderjeet Singh
4a852043b3 Moved the classes to create procedural web-services into a procedural package. 2010-11-02 17:48:51 +00:00
Inderjeet Singh
681281e772 Moved the classes to create procedural web-services into a procedural package.
Moved IdTypeAdapter as an inner class of Id (Id.GsonTypeAdapter).
Created a internal.util package to keep commonly used classes such as Preconditions.
made common base classes such as ParamMap, ContentBody public.
2010-11-02 17:16:01 +00:00
Joel Leitch
c6a4f55d1a Fix for Issue #40. 2010-11-02 03:32:39 +00:00
Inderjeet Singh
4413c299ea Fixing compiler warnings 2010-11-02 00:13:48 +00:00
Inderjeet Singh
cf02621275 removed unused import 2010-11-02 00:12:21 +00:00
Inderjeet Singh
a224bb1e2b added serial version id 2010-11-01 23:16:03 +00:00
Inderjeet Singh
ad7bd1f465 removed unused JsonFormatter classes. 2010-11-01 23:10:09 +00:00