List of usage examples for com.vaadin.server BootstrapPageResponse getDocument
public Document getDocument()
From source file:org.vaadin.volga.SeoBootstrapListener.java
private void meta(BootstrapPageResponse response, String name, String content) { Element head = response.getDocument().getElementsByTag("head").get(0); Element meta = response.getDocument().createElement("meta"); meta.attr("name", name); meta.attr("content", content); head.appendChild(meta);/*w w w . ja v a2 s.c om*/ }