Package org.apache.syncope.sra.filters
Class LinkRewriteGatewayFilterFactory
- java.lang.Object
-
- org.springframework.cloud.gateway.support.AbstractConfigurable<C>
-
- org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory<CustomGatewayFilterFactory.Config>
-
- org.apache.syncope.sra.filters.CustomGatewayFilterFactory
-
- org.apache.syncope.sra.filters.ModifyResponseGatewayFilterFactory
-
- org.apache.syncope.sra.filters.LinkRewriteGatewayFilterFactory
-
- 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
public class LinkRewriteGatewayFilterFactory extends ModifyResponseGatewayFilterFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.syncope.sra.filters.ModifyResponseGatewayFilterFactory
ModifyResponseGatewayFilterFactory.InternalModifyResponseGatewayFilter
-
Nested classes/interfaces inherited from class org.apache.syncope.sra.filters.CustomGatewayFilterFactory
CustomGatewayFilterFactory.Config
-
Nested classes/interfaces inherited from class org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory.NameConfig
-
Nested classes/interfaces inherited from interface org.springframework.cloud.gateway.support.ShortcutConfigurable
org.springframework.cloud.gateway.support.ShortcutConfigurable.GatewayEvaluationContext, org.springframework.cloud.gateway.support.ShortcutConfigurable.RestrictivePropertyAccessor, org.springframework.cloud.gateway.support.ShortcutConfigurable.ShortcutType
-
-
Field Summary
-
Fields inherited from class org.apache.syncope.sra.filters.ModifyResponseGatewayFilterFactory
LOG
-
-
Constructor Summary
Constructors Constructor Description LinkRewriteGatewayFilterFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
modifyResponse(InputStream responseBody, CustomGatewayFilterFactory.Config config, ServerHttpResponseDecorator decorator, ServerWebExchange exchange)
protected boolean
skipCond(ServerHttpResponseDecorator decorator)
-
Methods inherited from class org.apache.syncope.sra.filters.ModifyResponseGatewayFilterFactory
apply
-
Methods inherited from class org.apache.syncope.sra.filters.CustomGatewayFilterFactory
getOrder
-
Methods inherited from class org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory
getPublisher, setApplicationEventPublisher
-
Methods inherited from class org.springframework.cloud.gateway.support.AbstractConfigurable
getConfigClass, newConfig, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
skipCond
protected boolean skipCond(ServerHttpResponseDecorator decorator)
- Overrides:
skipCond
in classModifyResponseGatewayFilterFactory
-
modifyResponse
protected byte[] modifyResponse(InputStream responseBody, CustomGatewayFilterFactory.Config config, ServerHttpResponseDecorator decorator, ServerWebExchange exchange) throws IOException
- Specified by:
modifyResponse
in classModifyResponseGatewayFilterFactory
- Throws:
IOException
-
-