Browse Source

flattened project structure so that eclipse gradle plugin will work

4.x
adriancole 11 years ago
parent
commit
22d1046b88
  1. 0
      core/src/main/java/feign/Body.java
  2. 0
      core/src/main/java/feign/Client.java
  3. 0
      core/src/main/java/feign/Contract.java
  4. 0
      core/src/main/java/feign/Feign.java
  5. 0
      core/src/main/java/feign/FeignException.java
  6. 0
      core/src/main/java/feign/Headers.java
  7. 0
      core/src/main/java/feign/Logger.java
  8. 0
      core/src/main/java/feign/MethodHandler.java
  9. 0
      core/src/main/java/feign/MethodMetadata.java
  10. 0
      core/src/main/java/feign/Observable.java
  11. 0
      core/src/main/java/feign/Observer.java
  12. 0
      core/src/main/java/feign/ReflectiveFeign.java
  13. 0
      core/src/main/java/feign/Request.java
  14. 0
      core/src/main/java/feign/RequestLine.java
  15. 0
      core/src/main/java/feign/RequestTemplate.java
  16. 0
      core/src/main/java/feign/Response.java
  17. 0
      core/src/main/java/feign/RetryableException.java
  18. 0
      core/src/main/java/feign/Retryer.java
  19. 0
      core/src/main/java/feign/Subscription.java
  20. 0
      core/src/main/java/feign/Target.java
  21. 0
      core/src/main/java/feign/Types.java
  22. 0
      core/src/main/java/feign/Util.java
  23. 0
      core/src/main/java/feign/codec/DecodeException.java
  24. 0
      core/src/main/java/feign/codec/Decoder.java
  25. 0
      core/src/main/java/feign/codec/Decoders.java
  26. 0
      core/src/main/java/feign/codec/EncodeException.java
  27. 0
      core/src/main/java/feign/codec/Encoder.java
  28. 0
      core/src/main/java/feign/codec/ErrorDecoder.java
  29. 0
      core/src/main/java/feign/codec/IncrementalDecoder.java
  30. 0
      core/src/main/java/feign/codec/SAXDecoder.java
  31. 0
      core/src/main/java/feign/codec/StringDecoder.java
  32. 0
      core/src/main/java/feign/codec/StringIncrementalDecoder.java
  33. 0
      core/src/test/java/feign/DefaultContractTest.java
  34. 0
      core/src/test/java/feign/DefaultRetryerTest.java
  35. 0
      core/src/test/java/feign/FeignTest.java
  36. 0
      core/src/test/java/feign/LoggerTest.java
  37. 0
      core/src/test/java/feign/RequestTemplateTest.java
  38. 0
      core/src/test/java/feign/TrustingSSLSocketFactory.java
  39. 0
      core/src/test/java/feign/UtilTest.java
  40. 0
      core/src/test/java/feign/codec/DefaultErrorDecoderTest.java
  41. 0
      core/src/test/java/feign/codec/RetryAfterDecoderTest.java
  42. 0
      core/src/test/java/feign/examples/AWSSignatureVersion4.java
  43. 0
      core/src/test/java/feign/examples/GitHubExample.java
  44. 0
      core/src/test/java/feign/examples/IAMExample.java
  45. 0
      example-github/build.gradle
  46. 0
      example-github/src/main/java/feign/example/github/GitHubExample.java
  47. 0
      example-wikipedia/build.gradle
  48. 0
      example-wikipedia/src/main/java/feign/example/wikipedia/ResponseDecoder.java
  49. 0
      example-wikipedia/src/main/java/feign/example/wikipedia/WikipediaExample.java
  50. 76
      feign-jaxrs/src/test/java/feign/jaxrs/examples/IAMExample.java
  51. 0
      gson/README.md
  52. 0
      gson/src/main/java/feign/gson/GsonModule.java
  53. 0
      gson/src/test/java/feign/gson/GsonModuleTest.java
  54. 0
      jaxrs/README.md
  55. 0
      jaxrs/src/main/java/feign/jaxrs/JAXRSModule.java
  56. 0
      jaxrs/src/test/java/feign/jaxrs/JAXRSContractTest.java
  57. 0
      jaxrs/src/test/java/feign/jaxrs/examples/GitHubExample.java
  58. 0
      ribbon/README.md
  59. 0
      ribbon/src/main/java/feign/ribbon/LBClient.java
  60. 0
      ribbon/src/main/java/feign/ribbon/LoadBalancingTarget.java
  61. 0
      ribbon/src/main/java/feign/ribbon/RibbonModule.java
  62. 0
      ribbon/src/test/java/feign/ribbon/LoadBalancingTargetTest.java
  63. 0
      ribbon/src/test/java/feign/ribbon/RibbonClientTest.java
  64. 6
      settings.gradle

0
feign-core/src/main/java/feign/Body.java → core/src/main/java/feign/Body.java

0
feign-core/src/main/java/feign/Client.java → core/src/main/java/feign/Client.java

0
feign-core/src/main/java/feign/Contract.java → core/src/main/java/feign/Contract.java

0
feign-core/src/main/java/feign/Feign.java → core/src/main/java/feign/Feign.java

0
feign-core/src/main/java/feign/FeignException.java → core/src/main/java/feign/FeignException.java

0
feign-core/src/main/java/feign/Headers.java → core/src/main/java/feign/Headers.java

0
feign-core/src/main/java/feign/Logger.java → core/src/main/java/feign/Logger.java

0
feign-core/src/main/java/feign/MethodHandler.java → core/src/main/java/feign/MethodHandler.java

0
feign-core/src/main/java/feign/MethodMetadata.java → core/src/main/java/feign/MethodMetadata.java

0
feign-core/src/main/java/feign/Observable.java → core/src/main/java/feign/Observable.java

0
feign-core/src/main/java/feign/Observer.java → core/src/main/java/feign/Observer.java

0
feign-core/src/main/java/feign/ReflectiveFeign.java → core/src/main/java/feign/ReflectiveFeign.java

0
feign-core/src/main/java/feign/Request.java → core/src/main/java/feign/Request.java

0
feign-core/src/main/java/feign/RequestLine.java → core/src/main/java/feign/RequestLine.java

0
feign-core/src/main/java/feign/RequestTemplate.java → core/src/main/java/feign/RequestTemplate.java

0
feign-core/src/main/java/feign/Response.java → core/src/main/java/feign/Response.java

0
feign-core/src/main/java/feign/RetryableException.java → core/src/main/java/feign/RetryableException.java

0
feign-core/src/main/java/feign/Retryer.java → core/src/main/java/feign/Retryer.java

0
feign-core/src/main/java/feign/Subscription.java → core/src/main/java/feign/Subscription.java

0
feign-core/src/main/java/feign/Target.java → core/src/main/java/feign/Target.java

0
feign-core/src/main/java/feign/Types.java → core/src/main/java/feign/Types.java

0
feign-core/src/main/java/feign/Util.java → core/src/main/java/feign/Util.java

0
feign-core/src/main/java/feign/codec/DecodeException.java → core/src/main/java/feign/codec/DecodeException.java

0
feign-core/src/main/java/feign/codec/Decoder.java → core/src/main/java/feign/codec/Decoder.java

0
feign-core/src/main/java/feign/codec/Decoders.java → core/src/main/java/feign/codec/Decoders.java

0
feign-core/src/main/java/feign/codec/EncodeException.java → core/src/main/java/feign/codec/EncodeException.java

0
feign-core/src/main/java/feign/codec/Encoder.java → core/src/main/java/feign/codec/Encoder.java

0
feign-core/src/main/java/feign/codec/ErrorDecoder.java → core/src/main/java/feign/codec/ErrorDecoder.java

0
feign-core/src/main/java/feign/codec/IncrementalDecoder.java → core/src/main/java/feign/codec/IncrementalDecoder.java

0
feign-core/src/main/java/feign/codec/SAXDecoder.java → core/src/main/java/feign/codec/SAXDecoder.java

0
feign-core/src/main/java/feign/codec/StringDecoder.java → core/src/main/java/feign/codec/StringDecoder.java

0
feign-core/src/main/java/feign/codec/StringIncrementalDecoder.java → core/src/main/java/feign/codec/StringIncrementalDecoder.java

0
feign-core/src/test/java/feign/DefaultContractTest.java → core/src/test/java/feign/DefaultContractTest.java

0
feign-core/src/test/java/feign/DefaultRetryerTest.java → core/src/test/java/feign/DefaultRetryerTest.java

0
feign-core/src/test/java/feign/FeignTest.java → core/src/test/java/feign/FeignTest.java

0
feign-core/src/test/java/feign/LoggerTest.java → core/src/test/java/feign/LoggerTest.java

0
feign-core/src/test/java/feign/RequestTemplateTest.java → core/src/test/java/feign/RequestTemplateTest.java

0
feign-core/src/test/java/feign/TrustingSSLSocketFactory.java → core/src/test/java/feign/TrustingSSLSocketFactory.java

0
feign-core/src/test/java/feign/UtilTest.java → core/src/test/java/feign/UtilTest.java

0
feign-core/src/test/java/feign/codec/DefaultErrorDecoderTest.java → core/src/test/java/feign/codec/DefaultErrorDecoderTest.java

0
feign-core/src/test/java/feign/codec/RetryAfterDecoderTest.java → core/src/test/java/feign/codec/RetryAfterDecoderTest.java

0
feign-core/src/test/java/feign/examples/AWSSignatureVersion4.java → core/src/test/java/feign/examples/AWSSignatureVersion4.java

0
feign-core/src/test/java/feign/examples/GitHubExample.java → core/src/test/java/feign/examples/GitHubExample.java

0
feign-core/src/test/java/feign/examples/IAMExample.java → core/src/test/java/feign/examples/IAMExample.java

0
examples/feign-example-github/build.gradle → example-github/build.gradle

0
examples/feign-example-github/src/main/java/feign/example/github/GitHubExample.java → example-github/src/main/java/feign/example/github/GitHubExample.java

0
examples/feign-example-wikipedia/build.gradle → example-wikipedia/build.gradle

0
examples/feign-example-wikipedia/src/main/java/feign/example/wikipedia/ResponseDecoder.java → example-wikipedia/src/main/java/feign/example/wikipedia/ResponseDecoder.java

0
examples/feign-example-wikipedia/src/main/java/feign/example/wikipedia/WikipediaExample.java → example-wikipedia/src/main/java/feign/example/wikipedia/WikipediaExample.java

76
feign-jaxrs/src/test/java/feign/jaxrs/examples/IAMExample.java

@ -1,76 +0,0 @@ @@ -1,76 +0,0 @@
/*
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package feign.jaxrs.examples;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import dagger.Module;
import dagger.Provides;
import feign.Feign;
import feign.Request;
import feign.RequestTemplate;
import feign.Target;
import feign.codec.Decoder;
import feign.codec.Decoders;
import feign.examples.AWSSignatureVersion4;
import feign.jaxrs.JAXRSModule;
import static dagger.Provides.Type.SET;
public class IAMExample {
interface IAM {
@GET @Path("/?Action=GetUser&Version=2010-05-08") String arn();
}
public static void main(String... args) {
IAM iam = Feign.create(new IAMTarget(args[0], args[1]), new IAMModule());
System.out.println(iam.arn());
}
static class IAMTarget extends AWSSignatureVersion4 implements Target<IAM> {
@Override public Class<IAM> type() {
return IAM.class;
}
@Override public String name() {
return "iam";
}
@Override public String url() {
return "https://iam.amazonaws.com";
}
private IAMTarget(String accessKey, String secretKey) {
super(accessKey, secretKey);
}
@Override public Request apply(RequestTemplate in) {
in.insert(0, url());
return super.apply(in);
}
}
@Module(overrides = true, library = true, includes = JAXRSModule.class)
static class IAMModule {
@Provides(type = SET) Decoder decoder() {
return Decoders.firstGroup("<Arn>([\\S&&[^<]]+)</Arn>");
}
}
}

0
feign-gson/README.md → gson/README.md

0
feign-gson/src/main/java/feign/gson/GsonModule.java → gson/src/main/java/feign/gson/GsonModule.java

0
feign-gson/src/test/java/feign/gson/GsonModuleTest.java → gson/src/test/java/feign/gson/GsonModuleTest.java

0
feign-jaxrs/README.md → jaxrs/README.md

0
feign-jaxrs/src/main/java/feign/jaxrs/JAXRSModule.java → jaxrs/src/main/java/feign/jaxrs/JAXRSModule.java

0
feign-jaxrs/src/test/java/feign/jaxrs/JAXRSContractTest.java → jaxrs/src/test/java/feign/jaxrs/JAXRSContractTest.java

0
feign-jaxrs/src/test/java/feign/jaxrs/examples/GitHubExample.java → jaxrs/src/test/java/feign/jaxrs/examples/GitHubExample.java

0
feign-ribbon/README.md → ribbon/README.md

0
feign-ribbon/src/main/java/feign/ribbon/LBClient.java → ribbon/src/main/java/feign/ribbon/LBClient.java

0
feign-ribbon/src/main/java/feign/ribbon/LoadBalancingTarget.java → ribbon/src/main/java/feign/ribbon/LoadBalancingTarget.java

0
feign-ribbon/src/main/java/feign/ribbon/RibbonModule.java → ribbon/src/main/java/feign/ribbon/RibbonModule.java

0
feign-ribbon/src/test/java/feign/ribbon/LoadBalancingTargetTest.java → ribbon/src/test/java/feign/ribbon/LoadBalancingTargetTest.java

0
feign-ribbon/src/test/java/feign/ribbon/RibbonClientTest.java → ribbon/src/test/java/feign/ribbon/RibbonClientTest.java

6
settings.gradle

@ -1,2 +1,6 @@ @@ -1,2 +1,6 @@
rootProject.name='feign'
include 'feign-core', 'feign-gson', 'feign-jaxrs', 'feign-ribbon', 'examples:feign-example-github', 'examples:feign-example-wikipedia'
include 'core', 'gson', 'jaxrs', 'ribbon', 'example-github', 'example-wikipedia'
rootProject.children.each { childProject ->
childProject.name = 'feign-' + childProject.name
}

Loading…
Cancel
Save