Package org.apache.syncope.sra.filters
Class ModifyResponseGatewayFilterFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<CustomGatewayFilterFactory.Config>
org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory<CustomGatewayFilterFactory.Config>
org.apache.syncope.sra.filters.CustomGatewayFilterFactory
org.apache.syncope.sra.filters.ModifyResponseGatewayFilterFactory
- All Implemented Interfaces:
Aware,org.springframework.cloud.gateway.filter.factory.GatewayFilterFactory<CustomGatewayFilterFactory.Config>,org.springframework.cloud.gateway.support.Configurable<CustomGatewayFilterFactory.Config>,org.springframework.cloud.gateway.support.ShortcutConfigurable,ApplicationEventPublisherAware
- Direct Known Subclasses:
LinkRewriteGatewayFilterFactory
Inspired by
ModifyResponseBodyGatewayFilterFactory.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classNested classes/interfaces inherited from class org.apache.syncope.sra.filters.CustomGatewayFilterFactory
CustomGatewayFilterFactory.ConfigNested classes/interfaces inherited from class org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory.NameConfigNested classes/interfaces inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
org.springframework.cloud.gateway.support.ShortcutConfigurable.GatewayBeanFactoryResolver, org.springframework.cloud.gateway.support.ShortcutConfigurable.GatewayEvaluationContext, org.springframework.cloud.gateway.support.ShortcutConfigurable.RestrictivePropertyAccessor, org.springframework.cloud.gateway.support.ShortcutConfigurable.ShortcutType -
Field Summary
FieldsFields inherited from interface org.springframework.cloud.gateway.filter.factory.GatewayFilterFactory
NAME_KEY, VALUE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.cloud.gateway.filter.GatewayFilterprotected abstract byte[]modifyResponse(InputStream responseBody, CustomGatewayFilterFactory.Config config, ServerHttpResponseDecorator decorator, ServerWebExchange exchange) protected booleanskipCond(ServerHttpResponseDecorator decorator) Methods inherited from class org.apache.syncope.sra.filters.CustomGatewayFilterFactory
getOrderMethods inherited from class org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
enableBodyCaching, getPublisher, setApplicationEventPublisherMethods inherited from class org.springframework.cloud.gateway.support.AbstractConfigurable
getConfigClass, newConfig, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.cloud.gateway.filter.factory.GatewayFilterFactory
apply, apply, apply, getConfigClass, name, newConfigMethods inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
shortcutFieldOrder, shortcutFieldPrefix, shortcutType
-
Field Details
-
LOG
-
-
Constructor Details
-
ModifyResponseGatewayFilterFactory
public ModifyResponseGatewayFilterFactory()
-
-
Method Details
-
apply
public org.springframework.cloud.gateway.filter.GatewayFilter apply(CustomGatewayFilterFactory.Config config) - Specified by:
applyin interfaceorg.springframework.cloud.gateway.filter.factory.GatewayFilterFactory<CustomGatewayFilterFactory.Config>- Specified by:
applyin classCustomGatewayFilterFactory
-
modifyResponse
protected abstract byte[] modifyResponse(InputStream responseBody, CustomGatewayFilterFactory.Config config, ServerHttpResponseDecorator decorator, ServerWebExchange exchange) throws IOException - Throws:
IOException
-
skipCond
-