Package com.vaadin.flow.spring
Class VaadinConfigurationProperties.Devmode
java.lang.Object
com.vaadin.flow.spring.VaadinConfigurationProperties.Devmode
- Enclosing class:
VaadinConfigurationProperties
Development mode properties, bound from
vaadin.devmode.*.- Since:
- 24.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the hosts allowed to connect to the dev mode server.Gets the name of the custom HTTP header that contains the client IP address that is checked to allow access to the dev mode server.voidsetHostsAllowed(String hostsAllowed) Sets the hosts allowed to connect to the dev mode server.voidsetRemoteAddressHeader(String remoteAddressHeader) Sets the name of the custom HTTP header that contains the client IP address that is checked to allow access to the dev mode server.
-
Constructor Details
-
Devmode
public Devmode()Creates the properties holder. Spring Boot instantiates it.
-
-
Method Details
-
getHostsAllowed
Gets the hosts allowed to connect to the dev mode server.- Returns:
- the hosts allowed to connect to the dev mode server
-
setHostsAllowed
Sets the hosts allowed to connect to the dev mode server.- Parameters:
hostsAllowed- - the hosts allowed to connect to the dev mode server
-
getRemoteAddressHeader
Gets the name of the custom HTTP header that contains the client IP address that is checked to allow access to the dev mode server.- Returns:
- the name of the custom HTTP header that contains the client IP address that is checked to allow access to the dev mode server.
- Since:
- 24.4
-
setRemoteAddressHeader
Sets the name of the custom HTTP header that contains the client IP address that is checked to allow access to the dev mode server. The HTTP header is supposed to contain a single address, and the HTTP request to have a single occurrence of the header. If not specified, remote address are read from the X-Forwarded-For header.- Parameters:
remoteAddressHeader- the name of the custom HTTP header that contains the client IP address that is checked to allow access to the dev mode server.- Since:
- 24.4
-