From 90b48c8a9b0143785be8d33627a1b3b3f4f5e9bc Mon Sep 17 00:00:00 2001 From: buildmaster Date: Wed, 8 Apr 2020 20:12:26 +0000 Subject: [PATCH] Sync docs from 2.2.x to gh-pages --- 2.2.x/reference/html/index.html | 34 +++++++++++++++++-- .../reference/html/spring-cloud-gateway.html | 34 +++++++++++++++++-- 2 files changed, 64 insertions(+), 4 deletions(-) diff --git a/2.2.x/reference/html/index.html b/2.2.x/reference/html/index.html index 71cf9c86..e44195ac 100644 --- a/2.2.x/reference/html/index.html +++ b/2.2.x/reference/html/index.html @@ -229,7 +229,11 @@ $(addBlockSwitches);
  • 17. Developer Guide
  • @@ -3835,7 +3839,7 @@ The following examples show how to do so:

    //request before calling chain.filter ServerHttpRequest.Builder builder = exchange.getRequest().mutate(); //use builder to manipulate the request - return chain.filter(exchange.mutate().request(request).build()); + return chain.filter(exchange.mutate().request(builder.build()).build()); }; } @@ -3875,6 +3879,32 @@ The following examples show how to do so:

    +
    +

    17.2.1. Naming Custom Filters And References In Configuration

    +
    +

    Custom filters class names should end in GatewayFilterFactory.

    +
    +
    +

    For example, to reference a filter named Something in configuration files, the filter +must be in a class named SomethingGatewayFilterFactory.

    +
    +
    + + + + + +
    + + +It is possible to create a gateway filter named without the +GatewayFilterFactory suffix, such as class AnotherThing. This filter could be +referenced as AnotherThing in configuration files. This is not a supported naming +convention and this syntax may be removed in future releases. Please update the filter +name to be compliant. +
    +
    +

    17.3. Writing Custom Global Filters

    diff --git a/2.2.x/reference/html/spring-cloud-gateway.html b/2.2.x/reference/html/spring-cloud-gateway.html index 71cf9c86..e44195ac 100644 --- a/2.2.x/reference/html/spring-cloud-gateway.html +++ b/2.2.x/reference/html/spring-cloud-gateway.html @@ -229,7 +229,11 @@ $(addBlockSwitches);
  • 17. Developer Guide
  • @@ -3835,7 +3839,7 @@ The following examples show how to do so:

    //request before calling chain.filter ServerHttpRequest.Builder builder = exchange.getRequest().mutate(); //use builder to manipulate the request - return chain.filter(exchange.mutate().request(request).build()); + return chain.filter(exchange.mutate().request(builder.build()).build()); }; } @@ -3875,6 +3879,32 @@ The following examples show how to do so:

    +
    +

    17.2.1. Naming Custom Filters And References In Configuration

    +
    +

    Custom filters class names should end in GatewayFilterFactory.

    +
    +
    +

    For example, to reference a filter named Something in configuration files, the filter +must be in a class named SomethingGatewayFilterFactory.

    +
    +
    + + + + + +
    + + +It is possible to create a gateway filter named without the +GatewayFilterFactory suffix, such as class AnotherThing. This filter could be +referenced as AnotherThing in configuration files. This is not a supported naming +convention and this syntax may be removed in future releases. Please update the filter +name to be compliant. +
    +
    +

    17.3. Writing Custom Global Filters