Commit Graph

313 Commits

Author SHA1 Message Date
Spencer Gibb
913091a716 added test for lists of request parameters 2015-08-19 10:52:01 -06:00
Adrian Cole
54607135b6 Consolidates references to parent pom
Some projects were failing on `./mvnw install` due to a non-existent
local path. This makes all poms use the same approach.
2015-08-18 17:49:07 -07:00
Spencer Gibb
d64cfa5cad polish 2015-08-13 16:40:50 -06:00
Spencer Gibb
b7bcdddacd add DiscoveryClientOptionalArgs constructor param to CloudEurekaClient 2015-08-13 15:41:53 -06:00
Stephen Oakey
c883495f8a Detect https from Ribbon Client Config
RibbonLoadBalancer and RibbonLoadBalancer use IClientConfig IsSecure
property for service ID to determine if the service is secure. Replaces
scheme of URI of request with https if the request is secure.

fixes gh-337
2015-08-12 15:35:39 -06:00
Josh Ghiloni
539ca47bab Make isSecure() match getPort() in secure vs non-secure resolution 2015-08-11 15:14:04 -06:00
Spencer Gibb
9e40714e3c Use the first non-loopback address for host/ip addr
fixes gh-468
2015-08-07 18:17:59 -06:00
Jon Schneider
191a1ccc35 make EurekaClient available before smart lifecycle phase 0 2015-08-07 14:14:54 -06:00
Spencer Gibb
246830c9d3 Upgrade to Eureka 1.2.0
Implements forwarding of eureka CacheRefreshedEvent as HeartbeatEvent,
rather thank serialization hack.  Uses new Eureka DI functionality
(mostly there, some issues). Updates EurekaJacksonCodec to be
"DataCenterAware". Reference EurekaClient interface rather than
DiscoveryClient class.

fixes gh-349
2015-08-05 13:37:36 -06:00
Spencer Gibb
e7a767e042 Make RxJavaAutoConfiguration ConditionalOnClass AsyncHandlerMethodReturnValueHandler
so non-web apps don't break

fixes gh-475
2015-08-05 10:39:08 -06:00
Jakub Narloch
69c3723aac Updated documentation for Feign hierarchical clients 2015-08-04 11:16:04 -06:00
Spencer Gibb
5ac5f198aa Support returning Observable from Spring MVC Controllers.
Via spring 4.2 new AsyncHandlerMethodReturnValueHandler

fixes gh-231
2015-07-30 14:05:46 -06:00
Spencer Gibb
e5e677c0ad remove https port 8443 registration.
It overwrote the port 443 registration.

fixes gh-461
2015-07-27 15:00:49 -06:00
Jakub Narloch
798a19e468 Specifing only the serviceId causes NPE 2015-07-27 14:08:00 -06:00
Spencer Gibb
371f8b3bf2 feign polishing 2015-07-27 12:05:11 -06:00
Dave Syer
b0b4916d3c If user configures hostname for eureka client, do not refresh it
Fixes gh-463
2015-07-27 17:55:01 +01:00
andreasevers
42f6e4d1f0 If more fine-grained ignoring is needed, you can specify specific patterns to ignore. These patterns are being evaluated at the end of the route location process, which means prefixes should be included in the pattern to warrant a match. Ignored patterns span all services and supersede any other route specification.
zuul:
  ignoredPatterns: */admin/**
  routes:
    users: /myusers/**

This means that all calls such as "/myusers/101" will be forwarded to "/101" on the "users" service. But calls including "/admin/" will not resolve.
2015-07-27 10:27:43 -06:00
Spencer Gibb
a6b94a38fe Add support for using Apache HttpClient with Feign
fixes gh-415
2015-07-15 17:23:41 -06:00
Jakub Stachowski
dd1c5bb495 Build query string from context instead of original request
Recreate query string from either getCurrentContext().getRequestQueryParams()
or original request as fallback. This allows to override query string
params in pre filters.

fixes gh-426
2015-07-14 09:43:52 -06:00
Spencer Gibb
9149319bd7 implement getHostName where refresh==true 2015-07-10 13:27:42 -06:00
Dave Syer
f682c42001 Merge branch '1.0.x' 2015-07-10 11:48:36 +01:00
Ryan J Baxter
f4a69e43eb Sets the zone based on the hostname of the service if approximateZoneFromHostname is true.
The flag has always been there, it just isn't carried through to the ribbon client configuration
without this change if I understand this change correctly.

Fixes gh-315, fixes gh-423.
2015-07-10 11:47:35 +01:00
Dave Syer
9a45beec1d Update to Brixton 2015-06-26 12:57:06 +01:00
Dave Syer
3519ecf224 Prepare master for next snapshot 2015-06-26 10:57:19 +01:00
Dave Syer
652e4b96b3 Nail explicit dependencies for s-c-context 2015-06-23 17:58:59 +01:00
Spencer Gibb
34eb36323a Merge pull request #390 from heyjustin/master
Mark an instance as DOWN when the application context is stopped.
2015-06-23 12:00:30 -04:00
Brandon Atkinson
283c0f7600 Fix unescaped paths in SimpleHostRoutingFilter.
Move common code so RibbonRoutingFilter can use the same code.

Fixes gh-407
2015-06-23 09:56:46 -06:00
Brandon Atkinson
80206e6b38 Removed deflate accept-encoding from outbound requests 2015-06-23 09:50:14 -06:00
Bertrand Renuart
2ba5c4b9ec gh327: explicitly close the HttpResponse in case of timeout 2015-06-11 13:14:50 -06:00
Justin Walsh
69eaa27ccc Mark an instance as DOWN when the application context is stopped.
Fixes gh-377
2015-06-10 10:37:53 +02:00
Spencer Gibb
440779bcf0 Revert "attempt ordering of RibbonClients.defaultConfiguration's"
This reverts commit 0d468b3930.
2015-06-08 14:56:23 -06:00
Spencer Gibb
0d468b3930 attempt ordering of RibbonClients.defaultConfiguration's
ref gh-383
2015-06-08 14:55:22 -06:00
Spencer Gibb
0f2fbf8e1c fixed test broken during rebase 2015-06-08 14:02:17 -06:00
Spencer Gibb
b746ad5504 Fix name of default ribbon config if config is not in an eclosing class
fixes gh-374
2015-06-08 13:44:07 -06:00
Dave Syer
a63b825690 Add call to Lifecycle.stop()
See gh-377
2015-06-08 06:33:45 +01:00
Spencer Gibb
fa84108ebf fix swapped default values
fixes gh-372
2015-06-02 13:21:29 -06:00
Spencer Gibb
a0d72b3cbc removed test with encoded slashes 2015-06-02 08:33:32 -06:00
Dave Syer
23cde30063 Align metrics with Spring Boot 1.3
Should be no change for users of Boot 1.2 right now, but with this
patch it is possible to use 1.3 with the new conventions for metrics
(e.g. in particular exporting by declaring beans of type
MetricWriter)
2015-06-02 15:29:08 +01:00
Spencer Gibb
899a577980 add test for zuul with encoded path parameter 2015-06-01 14:44:54 -06:00
Spencer Gibb
68c731d668 added test for metrics with period in name 2015-05-28 09:01:53 -06:00
Spencer Gibb
1a6602149d Merge branch 'gh354b' of https://github.com/brenuart/spring-cloud-netflix into brenuart-gh354b 2015-05-28 08:43:23 -06:00
Spencer Gibb
dbef27ac6b more RibbonClient tests 2015-05-28 08:32:01 -06:00
Bertrand Renuart
28f890989d Allow for periods in metric name (see gh354) 2015-05-28 09:48:28 +02:00
Dave Syer
bd808a76fa Add health.config for documentation purposes only 2015-05-27 10:27:02 +01:00
Spencer Gibb
4255179354 use io.reactivex:rxjava
fixes gh-353
2015-05-20 12:35:49 -06:00
Spencer Gibb
bd5d00c082 encode uri if needed
fixes gh-347
2015-05-18 21:51:58 -06:00
Spencer Gibb
8bb578ad97 update ServerMetricCollector to include instance and statistic tags if present.
fixes gh-348
2015-05-18 20:53:55 -06:00
Spencer Gibb
3bb1562b7f fix RibbonClientHttpRequestFactory to add headers and accept a body
fixes gh-350
2015-05-15 12:26:32 -06:00
Spencer Gibb
85b7ccf618 Merge pull request #316 from brenuart/issue-312
Make creation of the RestClient LAZY as it is no always required (issue #312)
2015-05-04 16:26:17 -04:00
Dave Syer
fde4741333 Update to 1.0.3 snapshots 2015-05-01 11:22:13 +02:00