com.vaadin.fusion.

Class FusionControllerConfiguration


  • @Configuration
    public class FusionControllerConfiguration
    extends Object

    A configuration class for customizing the FusionController class.

    • Constructor Detail

      • FusionControllerConfiguration

        public FusionControllerConfiguration(FusionEndpointProperties fusionEndpointProperties)

        Initializes the endpoint configuration.

        Parameters:

        fusionEndpointProperties - Vaadin ednpoint properties

    • Method Detail

      • endpointNameChecker

        @Bean
        public EndpointNameChecker endpointNameChecker()

        Registers an endpoint name checker responsible for validating the endpoint names.

        Returns:

        the endpoint name checker

      • csrfChecker

        @Bean
        public CsrfChecker csrfChecker(javax.servlet.ServletContext servletContext)

        Registers a default CsrfChecker bean instance.

        Parameters:

        servletContext - the servlet context

        Returns:

        the default bean

      • endpointUtil

        @Bean
        public EndpointUtil endpointUtil()

        Registers endpoint utility methods.

        Returns:

        the endpoint util class

      • endpointRegistry

        @Bean
        public EndpointRegistry endpointRegistry(EndpointNameChecker endpointNameChecker)

        Registers the endpoint registry.

        Parameters:

        endpointNameChecker - the name checker to use

        Returns:

        the endpoint registry