Commit Graph

137 Commits

Author SHA1 Message Date
adrian.f.cole 557d28783f Issue 109, Issue 73: more work on compatibility layer; expose vendor interface as getApi(); more Strategies
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1946 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-10-05 16:27:48 +00:00
adrian.f.cole e95e8f3429 Issue 108
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1942 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-10-03 22:33:10 +00:00
adrian.f.cole a1ca5773c7 Issue 108: changed from List to SortedSet
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1941 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-10-03 19:53:27 +00:00
adrian.f.cole 502dc92836 Issue 103, Issue 73: cleaned up injection and portability layer, removing need for most internal classes and facilitating shared testing stubs across providers
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1940 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-30 21:17:07 +00:00
adrian.f.cole be48d352f9 Issue 103: changed class processors to use TypeLiteral to obtain class object instead of factories
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1936 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-28 01:53:44 +00:00
adrian.f.cole 2de58bb5b9 Issue 102: refactor to use RestContext instead of httpresponse.request
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1935 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-27 19:28:37 +00:00
adrian.f.cole 9f2ebf62cd Issue 88: corrected test to accurately reflect need for leading double-dashes
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1933 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-27 19:09:26 +00:00
adrian.f.cole ac8c681eb1 Issue 76: added ParamParser on Methods and added ability for ResponseTransformers to implement RestContext which will give them access to the originating request and args
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1931 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-27 18:24:51 +00:00
adrian.f.cole 09b2c80cd2 Issue 97: added function to derive date from seconds since epoch
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1930 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-27 18:22:32 +00:00
adrian.f.cole 98ad5128df fixed test name
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1929 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-27 18:21:30 +00:00
adrian.f.cole e89aab8453 Issue 99: added multipart form support
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1928 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-27 18:20:53 +00:00
adrian.f.cole 98b759f51a Issue 76: add support for @QueryParam
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1926 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-25 17:22:34 +00:00
adrian.f.cole bb50a7364f Issue 99: organize binders
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1924 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-25 05:33:03 +00:00
adrian.f.cole 58b075562f Issue 95: multiple endpoints per interface
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1922 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-25 04:02:38 +00:00
adrian.f.cole e680ce6302 made default properties for NIO
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1918 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-24 23:25:01 +00:00
adrian.f.cole 95409990b1 Issue 95: created qualifier annotations for endpoints and removed host/port logic
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1917 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-24 22:49:43 +00:00
adrian.f.cole 9f78e8d2fc Issue 96: removed redundant factories and modified utilities and functions to use XML parsers directly
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1915 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-24 22:42:58 +00:00
adrian.f.cole eaa4674918 added support for BASIC authentication
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1914 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-24 22:36:53 +00:00
adrian.f.cole 3cde3d6356 Issue 67: convert to javax.inject annotations
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1913 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-24 05:37:25 +00:00
adrian.f.cole ffd34b36c2 Updates to Http: separate md5 from etag, switch from URL to URI
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1909 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-24 00:20:42 +00:00
adrian.f.cole 09f81b222a Issue 82: Filters didn't copy when redirects occurred
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1908 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-24 00:18:50 +00:00
adrian.f.cole 2f2dd9f881 refactored to not require the type of the api
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1907 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-24 00:14:17 +00:00
adrian.f.cole ca7ae7040c refactored to not require the type of the api
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1906 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-24 00:14:00 +00:00
adrian.f.cole 4a091d0669 formatting
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1903 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-23 23:18:45 +00:00
adrian.f.cole d941ae646e Issue 76: added ability to specify multiple default headers and queries, as well addedd a common collection type
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1902 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-23 23:16:48 +00:00
adrian.f.cole 6de55b5fd6 Issue 76: added ability to specify multiple default headers and queries, as well addedd a common collection type
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1901 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-23 23:15:43 +00:00
adrian.f.cole d22ec1690f Issue 93: added concurrent dep to core
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1899 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-23 22:55:23 +00:00
adrian.f.cole ed12a262ce Issue 93: moved concurrent libraries to their own module and setup custom properties so that it can compile under jdk 5
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1885 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-23 22:50:18 +00:00
adrian.f.cole 4e05fcf529 took out null checking, as exceptions are now thrown when parsing fails
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1873 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-03 03:57:21 +00:00
adrian.f.cole 94b13626f1 Issue 76: added support for default header parameters on an interface
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1872 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-03 03:49:13 +00:00
adrian.f.cole 7dd111435b changed to correctly address Byte-Order mark
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1871 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-03 03:48:14 +00:00
adrian.f.cole 086bab21f3 Issue 76: added support for default query parameters on an interface
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1870 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-02 23:09:30 +00:00
adrian.f.cole 8889daaa9b tests for hex encoding
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1869 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-02 23:08:35 +00:00
adrian.f.cole 3a569021dc fixed DateService to throw Exceptions instead of returning null
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1868 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-02 23:07:36 +00:00
adrian.f.cole a0192989d4 added base64 utility
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1862 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-09-01 23:01:17 +00:00
adrian.f.cole 93866572a0 Issue 85: removed HttpMethod enum, as it is inherently non-extensible. Documented http://code.google.com/p/jclouds/wiki/NewService
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1859 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-08-22 23:19:30 +00:00
adrian.f.cole fbb7740f17 allow filtering to be chained by returning the request on filter()
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1854 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-08-09 22:59:33 +00:00
adrian.f.cole 44eed3917f Issue 76: properly address UTF encoding of paths
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1843 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-08-09 22:41:55 +00:00
adrian.f.cole 6f58f153b5 added constructor that accepts http headers
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1842 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-08-09 22:40:35 +00:00
adrian.f.cole 3571be7a16 Issue 76: allow map binders to work without args in rare cases where there are no parameters, but a request body is needed
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1833 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-07-23 09:11:39 +00:00
adrian.f.cole feb0385c0a Issue 76: retyped PostBinder so that it can be used with PUTs that also need parameters
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1826 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-07-21 17:00:15 +00:00
adrian.f.cole c63e532271 Issue 79: improved session handling
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1825 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-07-21 16:50:58 +00:00
adrian.f.cole ea874483b0 Issue 79: added ssh exec feature
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1824 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-07-21 12:45:08 +00:00
adrian.f.cole 16e87c39f2 Issue 75: fixed Range header on tests
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1822 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-07-20 15:28:14 +00:00
jamurty 427ccfa963 Issue 75: Added GET with options for object
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1820 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-07-19 23:08:08 +00:00
adrian.f.cole 3d5d31f037 Issue 76: fixed varags annotation searching for subclasses/implementors
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1653 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-07-19 18:39:39 +00:00
adrian.f.cole 2b0eb5025a Issue 76:
New interface annotation parsing:
1.  HttpRequestOptions can now be a vararg option.  While we only support one element at the moment, it can cut down on repetition.

ex.
public List<Stuff> listStuff();
public List<Stuff> listStuff(ListOptions options);

becomes
public List<Stuff> listStuff(ListOptions ... options);

This is especially important when attempting to limit the copy-pasting of annotations which are the same between slight deviations

2.  HttpRequestOptions can now create a path suffix.  Again, this is to cut down on redundancy in the api:

ex.
public List<Stuff> listStuff();
public List<Stuff> listStuff(ListOptions options);
@Path(/details)
public List<Stuff> listStuffDetails();
@Path(/details)
public List<Stuff> listStuffDetails(ListOptions options);

becomes
public List<Stuff> listStuff(ListOptions ... options);

where ListOptions contains withDetails option.

example usage:

  List<Server> servers = connection.listServers(withDetails());


git-svn-id: http://jclouds.googlecode.com/svn/trunk@1652 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-07-19 17:33:17 +00:00
adrian.f.cole 02b35f2cb0 Issue 77: rackspace server commands
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1651 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-07-18 22:34:35 +00:00
adrian.f.cole 3daa05652b Issue 79: first run of ssh support
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1649 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-07-18 18:45:19 +00:00
adrian.f.cole 2272333eaa missing license header
git-svn-id: http://jclouds.googlecode.com/svn/trunk@1646 3d8758e0-26b5-11de-8745-db77d3ebf521
2009-07-18 14:54:36 +00:00