Package org.takes.rs

Class RsHtml

  • All Implemented Interfaces:
    Body, Head, Response

    public final class RsHtml
    extends RsWrap
    HTML response decorator.

    The class is immutable and thread-safe.

    Since:
    0.1
    • Constructor Detail

      • RsHtml

        public RsHtml()
        Ctor.
        Since:
        0.10
      • RsHtml

        public RsHtml​(CharSequence body)
        Ctor.
        Parameters:
        body - HTML body
      • RsHtml

        public RsHtml​(byte[] body)
        Ctor.
        Parameters:
        body - HTML body
      • RsHtml

        public RsHtml​(URL url)
        Ctor.
        Parameters:
        url - URL with body
        Since:
        0.10
      • RsHtml

        public RsHtml​(InputStream body)
        Ctor.
        Parameters:
        body - HTML body
      • RsHtml

        public RsHtml​(Response res,
                      CharSequence body)
        Ctor.
        Parameters:
        res - Original response
        body - HTML body
      • RsHtml

        public RsHtml​(Response res,
                      byte[] body)
        Ctor.
        Parameters:
        res - Original response
        body - HTML body
      • RsHtml

        public RsHtml​(Response res,
                      InputStream body)
        Ctor.
        Parameters:
        res - Original response
        body - HTML body
      • RsHtml

        public RsHtml​(Response res,
                      URL url)
        Ctor.
        Parameters:
        res - Original response
        url - URL with body
      • RsHtml

        public RsHtml​(Response res)
        Ctor.
        Parameters:
        res - Original response
        Since:
        0.10