com.vaadin.flow.spring.
Class VaadinConfigurationProperties.Devmode
Enclosing class:
-
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.
void
setHostsAllowed
(String hostsAllowed) Sets the hosts allowed to connect to the dev mode server.
void
setRemoteAddressHeader
(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()
-
-
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.
-
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.
-