public class RootMappedCondition extends Object implements org.springframework.context.annotation.Condition
In this case a DispatcherServlet is used. It's mapped to the root
instead of VaadinServlet and forwards requests to VaadinServlet. If
there are other mappings (via Spring endpoints e.g.) then
DispatcherServlet makes it possible to handle them properly via those
endpoints. Otherwise VaadinServlet will handle all the URLs because
it has the highest priority.
| Modifier and Type | Field and Description |
|---|---|
static String |
URL_MAPPING_PROPERTY |
| Constructor and Description |
|---|
RootMappedCondition() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isRootMapping(String mapping)
Returns
true if mapping is the root mapping
("/*"). |
boolean |
matches(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata) |
public static final String URL_MAPPING_PROPERTY
public boolean matches(org.springframework.context.annotation.ConditionContext context,
org.springframework.core.type.AnnotatedTypeMetadata metadata)
matches in interface org.springframework.context.annotation.Conditionpublic static boolean isRootMapping(String mapping)
true if mapping is the root mapping
("/*").
The mapping is controlled via the vaadin.urlMapping property
value. By default it's "/*".
mapping - the mapping string to checktrue if mapping is the root mapping and
false otherwiseCopyright © 2019 Vaadin Ltd. All Rights Reserved.