Commit Graph

480 Commits

Author SHA1 Message Date
Everett Toews 27dee0bfd9 Moved HttpMessage.getLowercaseHeaders() to Multimaps2.transformKeys() and
org.jclouds.functions.ToLowerCase for better reuse.

Added org.jclouds.util.Multimaps2Test for unit test.
2012-08-20 19:02:33 -05:00
Dies Koper f9e51c37d5 add FirstNetwork, in line with FirstRegion, etc., for use in FGCP provider 2012-08-11 23:22:41 -07:00
Adrian Cole ba56e2dce4 utils and better toStrings for location classes 2012-07-29 16:30:20 -07:00
Adrian Cole 821b422b94 added SshKeyPairGenerator 2012-07-25 00:33:38 -07:00
Adrian Cole cab271d30f expect test ignored properties 2012-07-25 00:33:38 -07:00
Adrian Cole 9d007a40b7 reset loginpassword/privatekey when explicitly set 2012-07-23 19:28:59 -07:00
Andrew Gaul 985cccff9a Prefer valueOf over explicit object creation
This allows use of cached values.  Patched with:

find -name \*.java | xargs sed -i 's/new Boolean(false)/Boolean.FALSE/g'
find -name \*.java | xargs sed -i 's/new Boolean(true)/Boolean.TRUE/g'
find -name \*.java | xargs sed -i 's/new Boolean(/Boolean.valueOf(/g'
find -name \*.java | xargs sed -i 's/new Integer(/Integer.valueOf(/g'
find -name \*.java | xargs sed -i 's/new Long(/Long.valueOf(/g'
2012-07-22 21:01:46 -07:00
Andrew Gaul a40983a39d Prefer InputSupplier helpers
These ensure that inputs are closed properly.

Updated with: find -name \*.java | xargs sed -i
's/toStringAndClose(\(.*\)\.getInput())/toString(\1)/'
2012-07-18 17:42:48 -07:00
Adam Lowe 20d3d0d603 expect tests: removing requirement that requests are unique (so orderedRequestsSendResponses can tee up different responses for the same request when testing functions) 2012-07-17 15:30:03 +01:00
Dies Koper f119aaa49f remove stray @Test on base class as it's causing warnings due to its public non-test methods 2012-07-17 11:50:18 +10:00
Adrian Cole 3154371433 Issue 1011: remove PagedIterator 2012-07-16 12:11:59 -04:00
Adrian Cole addeb0d031 added concat to PagedIterable 2012-07-16 11:07:17 -04:00
Adrian Cole 315d5fb3ef Issue 1011: introducing PagedIterable 2012-07-15 23:34:42 -07:00
Adrian Cole 872046ed4c added @Transform 2012-07-15 20:10:49 -07:00
Adrian Cole b49f2e99c7 Issue 1022: naming conventions 2012-07-15 13:57:44 -07:00
Adrian Cole 05fd64af44 cleaned up http builders and expect tests 2012-07-15 01:50:38 -07:00
Adrian Cole 72ba1639b9 Issue 1022: added BaseRestApiExpectTest 2012-07-12 10:08:10 -07:00
Adrian Cole 0383a80904 Issue 1011: PaginatedIterable with marker type as Object 2012-07-09 16:08:32 -07:00
Adrian Cole a73240f41b Issue 1007: ios8601 codec 2012-07-06 21:23:10 -07:00
Adam Lowe 3243325878 openstack: adjusting deserialization to treat {} as null if (and ONLY if) a null pointer is thrown when attempting to construct an object from the empty json object ({}) 2012-07-03 12:39:53 +01:00
Adrian Cole fb98ce82f7 cleanup of module binding, clarity in toStrings, reduced wrapper depth for memoized sets 2012-07-02 19:36:27 -07:00
Adrian Cole 07240f3e77 removed copy/paste code relating to expiration after write 2012-07-02 15:27:31 -07:00
Adrian Cole ef9a69e7c3 added strict suppliers of scoped locations 2012-07-02 15:22:10 -07:00
Adrian Cole 763572f8ee added paginated set functionality 2012-06-24 11:48:18 -07:00
Adam Lowe 21802d467a Adjusting general strategy to accept @Named in place of @SerializedName.
Adding TypeAdapterFactory to handle deserialization based on constructor annotations (Inject/Named and/or ConstructorProperties).
2012-06-20 13:41:44 +03:00
Adrian Cole db8f869f5b Issue 979:invalid endpoint returned when region name is the same as the provider 2012-06-15 23:36:21 -04:00
Andrew Gaul 736554d049 Correct spelling errors 2012-06-14 10:03:39 -04:00
Adrian Cole 5a3f6011a2 removed junit test dependency 2012-06-03 17:26:57 -07:00
Adam Lowe 4008407de3 Adding support for @Path and @PathParam to delegate methods to RestAnnotationProcessor 2012-06-01 22:41:45 +01:00
Adam Lowe 76531d62e0 Adding multiple varargs HttpRequestOptions support 2012-05-31 13:40:59 +01:00
Adrian Cole f8280ec56c Issue 647: normalized use of IllegalArgumentException 2012-05-22 11:31:32 -06:00
Adrian Cole ca84fcc279 support beta versions 2012-05-21 23:22:55 -06:00
Aled Sage fffa3eb8af Issue 647: fix handling of malformed 'Expires' header 2012-05-17 23:58:39 +01:00
Aled Sage 2637a4b6e9 Issue 647: DateCodec impl delegates to DateService 2012-05-17 11:25:13 +01:00
Aled Sage cd9c830c5a Issue 647: store Expires as Date; added ContentMetadataCodec for converting to/from HTTP headers 2012-05-17 11:24:50 +01:00
Aled Sage 9aedf7b6f6 Issue 647: added "Expires" header for ContentMetadata 2012-05-17 11:24:45 +01:00
Adrian Cole 7854d85f13 Issue 932:transition to multi-threaded google appengine 2012-05-17 00:18:08 -07:00
Adrian Cole ffb9b34cea ensure mock tests are run single-threaded 2012-05-15 12:12:21 -07:00
Adrian Cole db40facb2d Issue 930:RetryingCacheLoaderDecorator 2012-05-14 23:18:25 -07:00
Adam Lowe cc016d5dc8 Adjusting MapBinder to take Map<String,Object> so BindToJsonPayload can bind objects annotated with PayloadParam correctly 2012-05-14 13:09:22 +01:00
Adam Lowe f11518fa1e Adding requestLine check to ensure all HttpRequestComparisonTypes compare endpoints and methods 2012-05-10 15:21:48 +01:00
Adrian Cole 9701d80bbb Issue 919: added RegionIdFilter and ZoneIdFilter 2012-05-09 18:21:56 -07:00
Adam Lowe 1797b27ed4 Adding OptionalTypeAdaptorFactory to handle the parsing of Optional values 2012-05-08 17:03:18 -07:00
Andrew Gaul 74440a7a87 Eliminate Throwables2.propagateOrNull
Throwables.propagate always propagates the Throwable; there is no need
to return null.
2012-05-02 13:51:36 -07:00
Adrian Cole af65dbbac3 Merge pull request #593 from andrewgaul/string-builder
Prefer unsynchronized StringBuilder
2012-04-30 10:46:21 -07:00
Andrew Gaul 198d19714e Prefer unsynchronized StringBuilder
A few instances remain due to EasyMock and Matcher.
2012-04-30 09:50:18 -07:00
Adam Lowe f3dc23f578 Simplifying BaseRestClientExpectTest's comparison of non-payload requests 2012-04-27 16:35:22 +01:00
Adrian Cole df7d2acbb4 wrapper -> view 2012-04-23 19:14:36 -07:00
Adrian Cole 886d2cafb9 created base Context class with ProviderMetadata and Identity 2012-04-23 16:16:51 -07:00
Adrian Cole f1010e13a4 fixed aws-ec2 image parsing 2012-04-21 10:59:01 -07:00