Class HttpPart

java.lang.Object
org.apache.juneau.marshall.httppart.HttpPart
All Implemented Interfaces:
NameValuePair

public class HttpPart extends Object implements NameValuePair
Represents an instance of an HTTP part.

Can be used to represent both request and response parts.

See Also:
  • Constructor Details

    • HttpPart

      public HttpPart(String name, HttpPartType partType, HttpPartSchema schema, HttpPartSerializerSession serializer, Object part)
      Constructor.

      Used when the part is in POJO form and needs to be converted to a String.

      Parameters:
      name - The HTTP part name (e.g. the header name).
      partType - The HTTP part type.
      schema - Schema information about the part.
      serializer - The part serializer to use to serialize the part.
      part - The part POJO being serialized.
  • Method Details