Package htmlflow
Class HtmlViewAsync
java.lang.Object
htmlflow.HtmlPage
htmlflow.HtmlViewAsync
- All Implemented Interfaces:
org.xmlet.htmlapifaster.async.AsyncElement<HtmlPage>,org.xmlet.htmlapifaster.Element<HtmlPage,org.xmlet.htmlapifaster.Element<?, ?>>
Dynamic views can be bound to a domain object within an asynchronous context with the usage of
Publisher.- Author:
- Pedro Fialho
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetName()final org.xmlet.htmlapifaster.Html<HtmlPage>html()final CompletableFuture<String>renderAsync(Object model) setIndented(boolean isIndented) Returns a new instance of HtmlFlow with the same properties of this object but with indented set to the value of isIndented parameter.This implementation is always thread-safe since we create a new visitor on each resolution (i.e.final CompletableFuture<Void>writeAsync(Appendable out, Object model) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xmlet.htmlapifaster.Element
await, custom, dynamic, of
-
Method Details
-
html
-
setIndented
Description copied from class:HtmlPageReturns a new instance of HtmlFlow with the same properties of this object but with indented set to the value of isIndented parameter.- Specified by:
setIndentedin classHtmlPage
-
getVisitor
-
getName
-
threadSafe
This implementation is always thread-safe since we create a new visitor on each resolution (i.e. render or write). Thus there is no shared visitors across concurrent resolutions.- Specified by:
threadSafein classHtmlPage- Returns:
-
writeAsync
-
renderAsync
-