Class RsYaml

  • All Implemented Interfaces:
    com.artipie.http.Response

    public final class RsYaml
    extends Object
    implements com.artipie.http.Response
    Response with Yaml document.
    Since:
    0.1
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.artipie.http.Response

        com.artipie.http.Response.Wrap
    • Field Summary

      • Fields inherited from interface com.artipie.http.Response

        EMPTY
    • Constructor Summary

      Constructors 
      Constructor Description
      RsYaml​(com.amihaiemil.eoyaml.YamlNode yaml)
      Response from Yaml document.
      RsYaml​(Supplier<? extends com.amihaiemil.eoyaml.YamlNode> yaml)
      Response from Yaml supplier.
      RsYaml​(Supplier<? extends com.amihaiemil.eoyaml.YamlNode> yaml, Charset encoding)
      Response from Yaml supplier with charset encoding.
    • Constructor Detail

      • RsYaml

        public RsYaml​(com.amihaiemil.eoyaml.YamlNode yaml)
        Response from Yaml document.
        Parameters:
        yaml - Yaml document
      • RsYaml

        public RsYaml​(Supplier<? extends com.amihaiemil.eoyaml.YamlNode> yaml)
        Response from Yaml supplier.
        Parameters:
        yaml - Yaml document supplier
      • RsYaml

        public RsYaml​(Supplier<? extends com.amihaiemil.eoyaml.YamlNode> yaml,
                      Charset encoding)
        Response from Yaml supplier with charset encoding.
        Parameters:
        yaml - Yaml document supplier
        encoding - Charset encoding
    • Method Detail

      • send

        public CompletionStage<Void> send​(com.artipie.http.Connection connection)
        Specified by:
        send in interface com.artipie.http.Response