Class BodyFilterFunctions

java.lang.Object
org.springframework.cloud.gateway.server.mvc.filter.BodyFilterFunctions

public abstract class BodyFilterFunctions extends Object
  • Method Details

    • adaptCachedBody

      public static Function<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerRequest> adaptCachedBody()
    • modifyRequestBody

      public static <T, R> Function<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerRequest> modifyRequestBody(Class<T> inClass, Class<R> outClass, @Nullable String newContentType, BodyFilterFunctions.RewriteFunction<T,R> rewriteFunction)
    • modifyResponseBody

      public static <T, R> BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse,org.springframework.web.servlet.function.ServerResponse> modifyResponseBody(Class<T> inClass, Class<R> outClass, @Nullable String newContentType, BodyFilterFunctions.RewriteResponseFunction<T,R> rewriteFunction)