Package org.apache.juneau.httppart
Class HttpPart
java.lang.Object
org.apache.juneau.httppart.HttpPart
- All Implemented Interfaces:
NameValuePair
Represents an instance of an HTTP part.
Can be used to represent both request and response parts.
See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionHttpPart(String name, HttpPartType partType, HttpPartSchema schema, HttpPartSerializerSession serializer, Object part) Constructor. -
Method Summary
-
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
-
getName
- Specified by:
getNamein interfaceNameValuePair
-
getValue
- Specified by:
getValuein interfaceNameValuePair
-