src/main/java/org/edgegallery/appstore/interfaces/RequestFilterConfiguration.java
@Bean
    public FilterRegistrationBean<OncePerRequestFilter> jsonRequestSizeFilterRegistrationBean() {
        FilterRegistrationBean<OncePerRequestFilter> registration = new FilterRegistrationBean<>();
        registration.setFilter(new JsonRequestSizeLimitFilter());
        registration.addUrlPatterns("/mec/appstore/v1/*");
        registration.setName("JsonRequestSizeLimitFilter");
        registration.setOrder(1);
        return registration;
    }
/**
     * Registers json request size filter.
     *
     * @return instance of filter registration bean
     */
Registers json request size filter.
@return instance of filter registration bean
Registers json request size filter . @return instance of filter registration bean
@Bean
    public FilterRegistrationBean<OncePerRequestFilter> jsonRequestSizeFilterRegistrationBean() {
        FilterRegistrationBean<OncePerRequestFilter> registration = new FilterRegistrationBean<>();
        registration.setFilter(new JsonRequestSizeLimitFilter());
        registration.addUrlPatterns("/mec/appstore/v1/*");
        registration.setName("JsonRequestSizeLimitFilter");
        registration.setOrder(1);
        return registration;
    }
@ Bean public FilterRegistrationBean < OncePerRequestFilter > jsonRequestSizeFilterRegistrationBean ( ) { FilterRegistrationBean < OncePerRequestFilter > registration = new FilterRegistrationBean < > ( ) ; registration . setFilter ( new JsonRequestSizeLimitFilter ( ) ) ; registration . addUrlPatterns ( "/mec/appstore/v1/*" ) ; registration . setName ( "JsonRequestSizeLimitFilter" ) ; registration . setOrder ( 1 ) ; return registration ; }
Registers json request size filter.
Registers json request size filter .