com.vaadin.fusion.
Class VaadinConnectControllerConfiguration
- java.lang.Object
-
- com.vaadin.fusion.VaadinConnectControllerConfiguration
-
public class VaadinConnectControllerConfiguration extends Object
A configuration class for customizing the
VaadinConnectController
class.
-
-
Constructor Summary
Constructors Constructor and Description VaadinConnectControllerConfiguration(VaadinEndpointProperties vaadinEndpointProperties)
Initializes the endpoint configuration.
-
Method Summary
All Methods Modifier and Type Method and Description AccessAnnotationChecker
accessAnnotationChecker()
Registers a default
AccessAnnotationChecker
bean instance.VaadinConnectAccessChecker
accessChecker(AccessAnnotationChecker accessAnnotationChecker, CsrfChecker csrfChecker)
Registers a default
VaadinConnectAccessChecker
bean instance.CsrfChecker
csrfChecker()
Registers a default
CsrfChecker
bean instance.EndpointNameChecker
endpointNameChecker()
Registers an endpoint name checker responsible for validating the endpoint names.
EndpointRegistry
endpointRegistry(EndpointNameChecker endpointNameChecker)
Registers the endpoint registry.
EndpointUtil
endpointUtil()
Registers endpoint utility methods.
ExplicitNullableTypeChecker
typeChecker()
Registers a
ExplicitNullableTypeChecker
bean instance.WebMvcRegistrations
webMvcRegistrationsHandlerMapping()
Registers
VaadinConnectController
to useVaadinEndpointProperties.getVaadinEndpointPrefix()
as a prefix for all Vaadin endpoints.
-
-
-
Constructor Detail
-
VaadinConnectControllerConfiguration
public VaadinConnectControllerConfiguration(VaadinEndpointProperties vaadinEndpointProperties)
Initializes the endpoint configuration.
Parameters:
vaadinEndpointProperties
- Vaadin ednpoint properties
-
-
Method Detail
-
webMvcRegistrationsHandlerMapping
public WebMvcRegistrations webMvcRegistrationsHandlerMapping()
Registers
VaadinConnectController
to useVaadinEndpointProperties.getVaadinEndpointPrefix()
as a prefix for all Vaadin endpoints.Returns:
updated configuration for
VaadinConnectController
-
endpointNameChecker
public EndpointNameChecker endpointNameChecker()
Registers an endpoint name checker responsible for validating the endpoint names.
Returns:
the endpoint name checker
-
accessChecker
public VaadinConnectAccessChecker accessChecker(AccessAnnotationChecker accessAnnotationChecker, CsrfChecker csrfChecker)
Registers a default
VaadinConnectAccessChecker
bean instance.Parameters:
accessAnnotationChecker
- the access controlks checker to usecsrfChecker
- the CSRF checker to useReturns:
the default Vaadin endpoint access checker bean
-
accessAnnotationChecker
public AccessAnnotationChecker accessAnnotationChecker()
Registers a default
AccessAnnotationChecker
bean instance.Returns:
the default bean
-
csrfChecker
public CsrfChecker csrfChecker()
Registers a default
CsrfChecker
bean instance.Returns:
the default bean
-
typeChecker
public ExplicitNullableTypeChecker typeChecker()
Registers a
ExplicitNullableTypeChecker
bean instance.Returns:
the explicit nullable type checker
-
endpointUtil
public EndpointUtil endpointUtil()
Registers endpoint utility methods.
Returns:
the endpoint util class
-
endpointRegistry
public EndpointRegistry endpointRegistry(EndpointNameChecker endpointNameChecker)
Registers the endpoint registry.
Parameters:
endpointNameChecker
- the name checker to useReturns:
the endpoint registry
-
-