Examples of HTML


Examples of play.api.templates.Html

        }
    }

    private static void sendConfirmationMail(Token token) {
        String subject =  Messages.get("mail.reset.ask.subject");
        Html message = views.html.account.confirmationMail.render(token);
        String recipient = token.email;
        Mail.Envelop envelop = new Mail.Envelop(subject, message, recipient);
        Mail.sendMail(envelop);
    }
View Full Code Here

Examples of play.twirl.api.Html

     * Turn the argument into either itself or a HTML-safe non-breaking space if it is a string.
     * @return HTML-safe non-breaking space of the argument itself
     */
    public static Object orNbsp(Object x) {
        if (x == null) {
            return new Html(" ");
        }

        if (x instanceof String) {
            final String s = x.toString();
            if (s.isEmpty()) {
                return new Html(" ");
            }
        }
        return x;
    }
View Full Code Here

Examples of rocket.widget.client.Html

    Checker.notNull("parameter:padder", padder);
    this.padder = padder;
  }

  protected Widget createPadder() {
    return new Html(" ");
  }
View Full Code Here

Examples of rocks.xmpp.extensions.xhtmlim.model.Html

    @Test
    public void unmarshalHtml() throws XMLStreamException, JAXBException {
        String xml = "<html xmlns='http://jabber.org/protocol/xhtml-im'>\n" +
                "    <body xmlns='http://www.w3.org/1999/xhtml'><p style='font-weight:bold'>hi!</p><p style='font-weight:bold'>hi!</p></body>\n" +
                "  </html>\n";
        Html html = unmarshal(xml, Html.class);
        Assert.assertNotNull(html.getBody());
        Assert.assertEquals(html.getBody().getChildNodes().getLength(), 2);
        Assert.assertEquals(html.getContent(), "<p style=\"font-weight:bold\">hi!</p><p style=\"font-weight:bold\">hi!</p>");
    }
View Full Code Here

Examples of us.codecraft.webmagic.selector.Html

    }

    @Test
    public void testDownloader() {
        HttpClientDownloader httpClientDownloader = new HttpClientDownloader();
        Html html = httpClientDownloader.download("https://github.com");
        assertTrue(!html.getFirstSourceText().isEmpty());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.