Commit Graph

34 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Inderjeet Singh
4413c299ea Fixing compiler warnings 2010-11-02 00:13:48 +00:00
Inderjeet Singh
ebd4047707 switched to using Google Guava library instead of older collections library. 2010-11-01 17:50:48 +00:00
Inderjeet Singh
9b10e70a79 Removed the version numbers from the plugin configuration of pom.xmls. This ensures that the latest version of the plugins gets downloaded and used while building a project. 2010-10-25 23:09:24 +00:00
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