Inderjeet Singh
e656954c16
removed spurious warnings and allowed extension of RestClient for creating testing fixtures.
2010-09-19 13:50:41 +00:00
Inderjeet Singh
01ce73441e
Updated Gson version to 1.5 in maven configuration to match the current version.
2010-07-20 05:32:21 +00:00
Inderjeet Singh
08d3827dae
Added methods with TypedKeys
2010-07-20 00:36:40 +00:00
Inderjeet Singh
8bcbab629a
Added an illustrative comment in the ParamMap precondition check. Added methods to take a formatted message in Preconditions.
2010-07-13 17:24:19 +00:00
Inderjeet Singh
58704f9aad
removed the builder method that took String parameter name for better enforcement of type safety.
2010-07-13 17:16:47 +00:00
Inderjeet Singh
de74482fe8
Implemented hashCode and equals for TypedKey to make it a value object.
...
Asserted preconditions on constructor input.
2010-07-12 22:13:38 +00:00
Inderjeet Singh
e7e2e59f73
added missing put methods with TypedKey
2010-04-21 00:02:25 +00:00
Inderjeet Singh
00b5d77fa6
Revised methods using TypedKey to use the class contained in the TypedKey instead of explicitly asking for it as a method parameter.
2010-04-20 22:45:48 +00:00
Inderjeet Singh
d46fea80db
added type cast to fix JDK version mismatch issue
2010-04-03 05:53:11 +00:00
Inderjeet Singh
7a115785b7
Added a getHeader method with a TypedKey in RestRequest.
2010-03-15 13:12:27 +00:00
Inderjeet Singh
ad0e0d6f54
Added means to define and implement REST web-service and its clients.
...
Added missing copyright headers.
Added TypedKey based methods in request/response classes.
2010-02-15 23:24:48 +00:00
Inderjeet Singh
1925fb966c
Introduced the notion of TypedKey for a parameter map or spec
2010-02-15 14:46:42 +00:00
Inderjeet Singh
f300cf35a2
removed Google collections and guice as dependencies
2010-02-02 14:02:35 +00:00
Inderjeet Singh
dbca5571e0
Added Content-Length to each request that goes out.
...
If a web-service request fails, we try to log as much response as possible.
2010-01-24 15:02:17 +00:00
Inderjeet Singh
e5c89f1ebc
Added a precondition check to ensure that a parameter being added to a ParamMap is compatible with its spec.
...
Added comments in RequestBody and ResponseBody to indicate that their Gson type adapters must be used.
2010-01-20 13:52:22 +00:00
Inderjeet Singh
51efca8457
Removed dependence on Guice and Collections from wsclient.
...
Renamed Builder.create() methods to Builder.build()
2010-01-19 12:58:52 +00:00
Inderjeet Singh
2bcc832ade
removed dependence on Google Guice and Google Collections libraries
2010-01-19 12:47:11 +00:00
Inderjeet Singh
45bf2db854
Created new projects:
...
1. wsdef: contains classes that are used to define a Gson based JSON web service
2. wsclient: contains classes that are used to write a Gson based web-service client
wsf is now only a server-side framework. Moved classes relevant for wsdef and wsclient from it to the individual projects.
2009-12-28 09:44:47 +00:00