-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
560 additions
and
115 deletions.
There are no files selected for viewing
37 changes: 0 additions & 37 deletions
37
...openfeign/src/main/java/io/microsphere/spring/cloud/openfeign/FeignComponentProvider.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,11 +7,7 @@ | |
import org.springframework.cloud.openfeign.FeignClientProperties; | ||
import org.springframework.util.CollectionUtils; | ||
|
||
import java.util.Collection; | ||
import java.util.HashMap; | ||
import java.util.HashSet; | ||
import java.util.Map; | ||
import java.util.Set; | ||
import java.util.*; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">韩超</a> | ||
|
@@ -29,6 +25,10 @@ public CompositedRequestInterceptor(String contextId, BeanFactory beanFactory) { | |
this.contextId = contextId; | ||
} | ||
|
||
public Set<RequestInterceptor> getRequestInterceptors() { | ||
return Collections.unmodifiableSet(set); | ||
} | ||
|
||
|
||
@Override | ||
public void apply(RequestTemplate template) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,18 @@ | |
|
||
import feign.Response; | ||
import feign.codec.ErrorDecoder; | ||
import io.microsphere.spring.cloud.openfeign.FeignComponentProvider; | ||
import org.springframework.cloud.context.named.NamedContextFactory; | ||
import org.springframework.cloud.openfeign.FeignClientProperties; | ||
import org.springframework.cloud.openfeign.FeignClientSpecification; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">韩超</a> | ||
* @since 0.0.1 | ||
*/ | ||
public class DecoratedErrorDecoder extends DecoratedFeignComponent<ErrorDecoder> implements ErrorDecoder { | ||
|
||
public DecoratedErrorDecoder(String contextId, FeignComponentProvider feignComponentProvider, FeignClientProperties clientProperties, ErrorDecoder delegate) { | ||
super(contextId, feignComponentProvider, clientProperties, delegate); | ||
public DecoratedErrorDecoder(String contextId, NamedContextFactory<FeignClientSpecification> contextFactory, FeignClientProperties clientProperties, ErrorDecoder delegate) { | ||
super(contextId, contextFactory, clientProperties, delegate); | ||
} | ||
|
||
@Override | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,17 +2,18 @@ | |
|
||
import feign.RetryableException; | ||
import feign.Retryer; | ||
import io.microsphere.spring.cloud.openfeign.FeignComponentProvider; | ||
import org.springframework.cloud.context.named.NamedContextFactory; | ||
import org.springframework.cloud.openfeign.FeignClientProperties; | ||
import org.springframework.cloud.openfeign.FeignClientSpecification; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">韩超</a> | ||
* @since 0.0.1 | ||
*/ | ||
public class DecoratedRetryer extends DecoratedFeignComponent<Retryer> implements Retryer { | ||
|
||
public DecoratedRetryer(String contextId, FeignComponentProvider feignComponentProvider, FeignClientProperties clientProperties, Retryer delegate) { | ||
super(contextId, feignComponentProvider, clientProperties, delegate); | ||
public DecoratedRetryer(String contextId, NamedContextFactory<FeignClientSpecification> contextFactory, FeignClientProperties clientProperties, Retryer delegate) { | ||
super(contextId, contextFactory, clientProperties, delegate); | ||
} | ||
|
||
@Override | ||
|
Oops, something went wrong.