Commit Graph

10 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
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
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
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
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
b64f69cb00 Added efficient equals and isValid static methods. 2010-11-01 16:00:01 +00:00
Inderjeet Singh
1d2648231f Revised the hashCode of Id to be based just on the value. Also, revised the equals method to return true when the only difference in the type is that one class is Foo and other is Foo<?, ?>. Added a compact toString() in the Id class that prints the type as MyType<Foo,Bar> instead of fully qualified names for each of the types.
Added tests regarding object equality for the Id class.
2010-10-23 15:34:57 +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
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