Module methanol

Class FormBodyPublisher.Builder

  • Enclosing class:
    FormBodyPublisher

    public static final class FormBodyPublisher.Builder
    extends java.lang.Object
    A builder of FormBodyPublisher instances.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FormBodyPublisher build()
      Returns a new FormBodyPublisher with the added queries.
      FormBodyPublisher.Builder query​(java.lang.String name, java.lang.String value)
      Adds the query specified by the given name and value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • query

        @CanIgnoreReturnValue
        public FormBodyPublisher.Builder query​(java.lang.String name,
                                               java.lang.String value)
        Adds the query specified by the given name and value.
        Parameters:
        name - the query's name
        value - the query's value
      • build

        public FormBodyPublisher build()
        Returns a new FormBodyPublisher with the added queries.