Rename NettyRoutingWebHandler to NettyProxyWebHandler

This commit is contained in:
Spencer Gibb
2017-03-30 20:14:49 -06:00
parent afe3bd62ca
commit b4b173284f
2 changed files with 5 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ import org.springframework.cloud.gateway.filter.factory.SetResponseHeaderWebFilt
import org.springframework.cloud.gateway.filter.factory.SetStatusWebFilterFactory;
import org.springframework.cloud.gateway.filter.factory.WebFilterFactory;
import org.springframework.cloud.gateway.handler.FilteringWebHandler;
import org.springframework.cloud.gateway.handler.NettyRoutingWebHandler;
import org.springframework.cloud.gateway.handler.NettyProxyWebHandler;
import org.springframework.cloud.gateway.handler.RoutePredicateHandlerMapping;
import org.springframework.cloud.gateway.handler.predicate.AfterRoutePredicateFactory;
import org.springframework.cloud.gateway.handler.predicate.BeforeRoutePredicateFactory;
@@ -104,8 +104,8 @@ public class GatewayAutoConfiguration {
}
@Bean
public NettyRoutingWebHandler nettyRoutingWebHandler(HttpClient httpClient) {
return new NettyRoutingWebHandler(httpClient);
public NettyProxyWebHandler proxyWebHandler(HttpClient httpClient) {
return new NettyProxyWebHandler(httpClient);
}
@Bean

View File

@@ -41,11 +41,11 @@ import reactor.ipc.netty.http.client.HttpClient;
/**
* @author Spencer Gibb
*/
public class NettyRoutingWebHandler implements WebHandler {
public class NettyProxyWebHandler implements WebHandler {
private final HttpClient httpClient;
public NettyRoutingWebHandler(HttpClient httpClient) {
public NettyProxyWebHandler(HttpClient httpClient) {
this.httpClient = httpClient;
}