Browse Source

Fix some typos in documentation

In particular:

- add missing `new` operator
- ensure that `RouteDefinitionLocators` is properly formatted in the "Configuration" section
- "Normwal" -> "Normal"
- remove extra "`"
pull/1554/head
Denis Zavedeev 5 years ago committed by Spencer Gibb
parent
commit
ff054309ec
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 8
      docs/src/main/asciidoc/spring-cloud-gateway.adoc

8
docs/src/main/asciidoc/spring-cloud-gateway.adoc

@ -1226,7 +1226,7 @@ As Spring Cloud Gateway distinguishes between "pre" and "post" phases for filter @@ -1226,7 +1226,7 @@ As Spring Cloud Gateway distinguishes between "pre" and "post" phases for filter
----
@Bean
public GlobalFilter customFilter() {
return CustomGlobalFilter();
return new CustomGlobalFilter();
}
public class CustomGlobalFilter implements GlobalFilter, Ordered {
@ -1324,7 +1324,7 @@ The `NettyWriteResponseFilter` runs if there is a Netty `HttpClientResponse` in @@ -1324,7 +1324,7 @@ The `NettyWriteResponseFilter` runs if there is a Netty `HttpClientResponse` in
=== RouteToRequestUrl Filter
The `RouteToRequestUrlFilter` runs if there is a `Route` object in the `ServerWebExchangeUtils.GATEWAY_ROUTE_ATTR` exchange attribute. It creates a new URI, based off of the request URI, but updated with the URI attribute of the `Route` object. The new URI is placed in the `ServerWebExchangeUtils.GATEWAY_REQUEST_URL_ATTR` exchange attribute`.
The `RouteToRequestUrlFilter` runs if there is a `Route` object in the `ServerWebExchangeUtils.GATEWAY_ROUTE_ATTR` exchange attribute. It creates a new URI, based off of the request URI, but updated with the URI attribute of the `Route` object. The new URI is placed in the `ServerWebExchangeUtils.GATEWAY_REQUEST_URL_ATTR` exchange attribute.
If the URI has a scheme prefix, such as `lb:ws://serviceid`, the `lb` scheme is stripped from the URI and placed in the `ServerWebExchangeUtils.GATEWAY_SCHEME_PREFIX_ATTR` for use later in the filter chain.
@ -1348,7 +1348,7 @@ spring: @@ -1348,7 +1348,7 @@ spring:
uri: http://localhost:3001
predicates:
- Path=/websocket/info/**
# Normwal Websocket route
# Normal Websocket route
- id: websocket_route
uri: ws://localhost:3001
predicates:
@ -1444,7 +1444,7 @@ spring: @@ -1444,7 +1444,7 @@ spring:
== Configuration
Configuration for Spring Cloud Gateway is driven by a collection of `RouteDefinitionLocator`s.
Configuration for Spring Cloud Gateway is driven by a collection of ``RouteDefinitionLocator``s.
.RouteDefinitionLocator.java
[source,java]

Loading…
Cancel
Save