Class RequestSizeGatewayFilterFactory
java.lang.Object
org.springframework.cloud.gateway.support.AbstractConfigurable<RequestSizeGatewayFilterFactory.RequestSizeConfig>
org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory<RequestSizeGatewayFilterFactory.RequestSizeConfig>
org.springframework.cloud.gateway.filter.factory.RequestSizeGatewayFilterFactory
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, GatewayFilterFactory<RequestSizeGatewayFilterFactory.RequestSizeConfig>, Configurable<RequestSizeGatewayFilterFactory.RequestSizeConfig>, ShortcutConfigurable, org.springframework.context.ApplicationEventPublisherAware
public class RequestSizeGatewayFilterFactory
extends AbstractGatewayFilterFactory<RequestSizeGatewayFilterFactory.RequestSizeConfig>
This filter blocks the request if the size in Content-Length header value is more than
the permissible size. Has no effect if Content-Length header is missing. The default
request size is 5 MB.
- Author:
- Arpan
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractGatewayFilterFactory
AbstractGatewayFilterFactory.NameConfigNested classes/interfaces inherited from interface ShortcutConfigurable
ShortcutConfigurable.GatewayBeanFactoryResolver, ShortcutConfigurable.GatewayEvaluationContext, ShortcutConfigurable.RestrictivePropertyAccessor, ShortcutConfigurable.ShortcutType -
Field Summary
Fields inherited from interface GatewayFilterFactory
NAME_KEY, VALUE_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(RequestSizeGatewayFilterFactory.RequestSizeConfig requestSizeConfig) Methods inherited from class AbstractGatewayFilterFactory
enableBodyCaching, getPublisher, setApplicationEventPublisherMethods inherited from class AbstractConfigurable
getConfigClass, newConfig, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface GatewayFilterFactory
apply, apply, apply, getConfigClass, name, newConfigMethods inherited from interface ShortcutConfigurable
shortcutFieldOrder, shortcutFieldPrefix, shortcutType
-
Constructor Details
-
RequestSizeGatewayFilterFactory
public RequestSizeGatewayFilterFactory()
-
-
Method Details
-
apply
-