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<?,?>>

public class HtmlViewAsync extends HtmlPage
Dynamic views can be bound to a domain object within an asynchronous context with the usage of Publisher.
Author:
Pedro Fialho
  • Method Details

    • html

      public final org.xmlet.htmlapifaster.Html<HtmlPage> html()
      Specified by:
      html in class HtmlPage
    • setIndented

      public HtmlPage setIndented(boolean isIndented)
      Description copied from class: HtmlPage
      Returns a new instance of HtmlFlow with the same properties of this object but with indented set to the value of isIndented parameter.
      Specified by:
      setIndented in class HtmlPage
    • getVisitor

      public HtmlViewVisitorAsync getVisitor()
    • getName

      public String getName()
    • threadSafe

      public HtmlViewAsync 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:
      threadSafe in class HtmlPage
      Returns:
    • writeAsync

      public final CompletableFuture<Void> writeAsync(Appendable out, Object model)
    • renderAsync

      public final CompletableFuture<String> renderAsync(Object model)