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 SummaryConstructorsConstructorDescriptionHttpPart(String name, HttpPartType partType, HttpPartSchema schema, HttpPartSerializerSession serializer, Object part) Constructor.
- 
Method Summary
- 
Constructor Details- 
HttpPartpublic 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 interface- NameValuePair
 
- 
getValue- Specified by:
- getValuein interface- NameValuePair
 
 
-