Interface WebPart<A>

Type Parameters:
A - the part body type
All Superinterfaces:
OutboundData<A>, OutboundDataEncoder<A>, Part<A>

public interface WebPart<A> extends Part<A>, OutboundDataEncoder<A>

A part with payload encoding support.

Implementors should rely on MediaTypeConverter to encode a part's payload based on its content type.

Since:
1.12
Author:
Jeremy Kuhn
  • Method Details

    • name

      WebPart<A> name(String name)
      Description copied from interface: Part

      Specifies the part's name.

      Specified by:
      name in interface Part<A>
      Parameters:
      name - a name
      Returns:
      this part
    • filename

      WebPart<A> filename(String filename)
      Description copied from interface: Part

      Specifies the part's file name.

      Specified by:
      filename in interface Part<A>
      Parameters:
      filename - a file name
      Returns:
      this part
    • headers

      WebPart<A> headers(Consumer<OutboundRequestHeaders> headersConfigurer)
      Description copied from interface: Part

      Specifies the part's headers.

      Specified by:
      headers in interface Part<A>
      Parameters:
      headersConfigurer - a headers configurer
      Returns:
      this part