/** * Returns the specified viewport content for the target route chain that * was navigated to, specified with {@link Inline} on the {@link Route} * annotated class or the {@link ParentLayout} of the route. * * @param context * the bootstrap context * @return the content value string for viewport meta tag */ static Optional<InlineTargets> getInlineTargets( BootstrapHandler.BootstrapContext context) { List<Inline> inlineAnnotations = context .getPageConfigurationAnnotations(Inline.class); if (inlineAnnotations.isEmpty()) { return Optional.empty(); } else { InlineTargets inlines = new InlineTargets(); inlineAnnotations.forEach(inline -> inlines .addInlineDependency(inline, context.getRequest())); return Optional.of(inlines); } }
BootstrapHandler.BootstrapContext context) { List<Meta> metaAnnotations = context .getPageConfigurationAnnotations(Meta.class); boolean illegalValue = false; Map<String, String> map = new HashMap<>();