Package com.psddev.cms.db

Examples of com.psddev.cms.db.ExternalContent


        return null;
    }

    @Override
    protected void doService(final ToolPageContext page) throws IOException, ServletException {
        ExternalContent content = new ExternalContent();

        content.setUrl(page.param(String.class, "url"));

        page.writeTag("!doctype html");
        page.writeStart("html");
            page.writeStart("head");
            page.writeEnd();

            page.writeStart("body");
                if (content.getResponse() == null) {
                    page.writeStart("div", "class", "message message-error");
                        page.writeHtml("Preview not available!");
                    page.writeEnd();

                } else {
                    content.renderObject(page.getRequest(), page.getResponse(), page);
                }
            page.writeEnd();
        page.writeEnd();
    }
View Full Code Here

TOP

Related Classes of com.psddev.cms.db.ExternalContent

Copyright © 2018 www.massapicom. 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.