Commit Graph

24 Commits

Author SHA1 Message Date
Inderjeet Singh
6d9893ddf3 Added a transient map in Metadata since metadata is often of two kinds: transient and persistent. persistent part is serialized/deserialized to JSON. Fixed imports in RepositoryInMemory. 2010-10-23 15:45:33 +00:00
Inderjeet Singh
c01fd85adb Added toString() methods. 2010-10-22 15:12:05 +00:00
Inderjeet Singh
281ed6f866 Created a generalized key-value store,MetaDataMap, for a map of MetaData.
Moved MetaData to wsdef from wsf.
Added a Gson type adapter for Id type.
2010-10-18 15:45:35 +00:00
Inderjeet Singh
5adfa4bc04 Defined an interface RestResource that all resources need to extend from. Defined an Id class for a resource.
Changed a rest body spec to take a type instead of a class. This allows parameterized resource types.
Defined a repository interface with an in-memory implementation for server-side storage of rest resource instances.
2010-10-17 16:01:36 +00:00
Inderjeet Singh
1a4bea7334 removed redundant null checks.
Fixed bug in Streams.copy where it was not honoring the closeInput and closeOutput parameters. 
Suppressed spurious unused warnings
2010-09-28 15:04:02 +00:00
Inderjeet Singh
9b0e7f8b84 initial check-in for implementing support for protocol buffers in Gson 2010-09-14 17:59:04 +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
d8638badf3 updated Google collections to the latest version 2010-02-16 14:02:42 +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
0a134db2f0 Added a new interface ResponseBuilder that is implemented by handlers to build a response of a specific type.
ResponseSender now sets the content-type of the stream to application/json
2010-01-20 13:53:53 +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
c5e3c32215 Added missing class 2009-12-28 10:17:40 +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
Inderjeet Singh
9ad4b2bc7e Made request/response classes immutable and using builder patterns to build them. 2008-09-20 13:55:52 +00:00
Inderjeet Singh
82851d68be Moved the setDoInput() on HttpURLConnection before sending any data on the connection.
disabled configuration settings on install in pom.xml that were interfering with the normal behavior of install.
2008-09-15 17:00:26 +00:00
Inderjeet Singh
2753213c2e Using name to generate Javadoc window titles in Gson. Added a source section in wsf. 2008-09-15 13:09:41 +00:00
Inderjeet Singh
0358db8873 added todos to correctly generate source and javadoc jars. 2008-09-15 12:50:32 +00:00
Inderjeet Singh
64fd7baf25 Added toString() methods. 2008-09-15 12:40:11 +00:00
Inderjeet Singh
39167e3af9 added settings to deploy source jar. 2008-09-14 16:16:11 +00:00
Inderjeet Singh
5520d20c41 made guice providers public. 2008-09-01 14:38:13 +00:00
Inderjeet Singh
7726e0bbbb removed unused import. 2008-09-01 14:32:20 +00:00
Inderjeet Singh
685710b124 added an assembly and javadoc descriptor for maven. 2008-09-01 14:24:27 +00:00
Inderjeet Singh
e6629947d0 updated the svn properties to ignore target and eclipse project directories and files.
added javadoc settings.
2008-09-01 14:24:00 +00:00
Inderjeet Singh
849612c50f initial creation of the wsf project. 2008-09-01 13:37:34 +00:00