Package nextapp.echo2.webrender

Examples of nextapp.echo2.webrender.BaseHtmlDocument.render()


            if (!(imageReference instanceof StreamImageReference)) {
                throw new IOException("Image is not a StreamImageReference.");
            }
            StreamImageReference streamImageReference = (StreamImageReference) imageReference;
            conn.setContentType(new ContentType(streamImageReference.getContentType(), true));
            streamImageReference.render(conn.getOutputStream());
        } catch (IOException ex) {
            // Internet Explorer appears to enjoy making half-hearted requests for images, wherein it resets the connection
            // leaving us with an IOException.  This exception is silently eaten.
            // It would preferable to only ignore SocketExceptions, however the API documentation does not provide
            // enough information to suggest that such a strategy would be adequate..
View Full Code Here


     */
    public void service(Connection conn) throws IOException {
        conn.setContentType(ContentType.TEXT_HTML);
        BaseHtmlDocument baseDoc = new BaseHtmlDocument("c_0");
        baseDoc.getBodyElement().appendChild(baseDoc.getDocument().createTextNode("New Instance"));
        baseDoc.render(conn.getWriter());
    }
}
View Full Code Here

        cssStyle.setAttribute("margin", "0px");
        cssStyle.setAttribute("overflow", "hidden");
        bodyElement.setAttribute("style", cssStyle.renderInline());
       
        // Render.
        baseDoc.render(conn.getWriter());
    }
}
View Full Code Here

                serverMessage = renderUpdate(conn, clientMessageDocument);
                processUserInstanceUpdates(userInstance, serverMessage);
            }
            serverMessage.setTransactionId(userInstance.getNextTransactionId());
            conn.setContentType(ContentType.TEXT_XML);
            serverMessage.render(conn.getWriter());
        }
    }
   
    /**
     * Renders updates to <code>UserInstance</code> properties.
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.