Class BodyFilterFunctions
java.lang.Object
org.springframework.cloud.gateway.server.mvc.filter.BodyFilterFunctions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic Function<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerRequest> 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) 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)
-
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, modifyResponseBodyorg.springframework.web.servlet.function.ServerResponse> (Class<T> inClass, Class<R> outClass, @Nullable String newContentType, BodyFilterFunctions.RewriteResponseFunction<T, R> rewriteFunction)
-