Class AfterFilterFunctions
java.lang.Object
org.springframework.cloud.gateway.server.mvc.filter.AfterFilterFunctions
- Author:
- raccoonback
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> addResponseHeader(String name, String... values) static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> dedupeResponseHeader(String name) static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> dedupeResponseHeader(String name, AfterFilterFunctions.DedupeStrategy strategy) 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, String newContentType, BodyFilterFunctions.RewriteResponseFunction<T, R> rewriteFunction) static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> removeJsonAttributesResponseBody(List<String> fieldList, boolean deleteRecursively) static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> removeResponseHeader(String name) static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> rewriteLocationResponseHeader(Consumer<RewriteLocationResponseHeaderFilterFunctions.RewriteLocationResponseHeaderConfig> configConsumer) static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> rewriteResponseHeader(String name, String regexp, String originalReplacement) static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> setResponseHeader(String name, String value) static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> setStatus(int statusCode) static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> setStatus(HttpStatusHolder statusCode) static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, org.springframework.web.servlet.function.ServerResponse> setStatus(org.springframework.http.HttpStatusCode statusCode)
-
Method Details
-
addResponseHeader
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, addResponseHeaderorg.springframework.web.servlet.function.ServerResponse> (String name, String... values) -
dedupeResponseHeader
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, dedupeResponseHeaderorg.springframework.web.servlet.function.ServerResponse> (String name) -
dedupeResponseHeader
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, dedupeResponseHeaderorg.springframework.web.servlet.function.ServerResponse> (String name, AfterFilterFunctions.DedupeStrategy strategy) -
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, String newContentType, BodyFilterFunctions.RewriteResponseFunction<T, R> rewriteFunction) -
removeResponseHeader
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, removeResponseHeaderorg.springframework.web.servlet.function.ServerResponse> (String name) -
rewriteLocationResponseHeader
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, rewriteLocationResponseHeader()org.springframework.web.servlet.function.ServerResponse> -
rewriteLocationResponseHeader
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, rewriteLocationResponseHeaderorg.springframework.web.servlet.function.ServerResponse> (Consumer<RewriteLocationResponseHeaderFilterFunctions.RewriteLocationResponseHeaderConfig> configConsumer) -
rewriteResponseHeader
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, rewriteResponseHeaderorg.springframework.web.servlet.function.ServerResponse> (String name, String regexp, String originalReplacement) -
setResponseHeader
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, setResponseHeaderorg.springframework.web.servlet.function.ServerResponse> (String name, String value) -
setStatus
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, setStatusorg.springframework.web.servlet.function.ServerResponse> (int statusCode) -
setStatus
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, setStatusorg.springframework.web.servlet.function.ServerResponse> (String statusCode) -
setStatus
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, setStatusorg.springframework.web.servlet.function.ServerResponse> (org.springframework.http.HttpStatusCode statusCode) -
setStatus
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, setStatusorg.springframework.web.servlet.function.ServerResponse> (HttpStatusHolder statusCode) -
removeJsonAttributesResponseBody
public static BiFunction<org.springframework.web.servlet.function.ServerRequest,org.springframework.web.servlet.function.ServerResponse, removeJsonAttributesResponseBodyorg.springframework.web.servlet.function.ServerResponse> (List<String> fieldList, boolean deleteRecursively)
-