Class HttpPart
java.lang.Object
org.apache.juneau.marshall.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:
-
Field Summary
Fields inherited from interface org.apache.juneau.commons.http.NameValuePair
EMPTY_ARRAY -
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
Description copied from interface:NameValuePairReturns the name.- Specified by:
getNamein interfaceNameValuePair- Returns:
- The name, never
null .
-
getValue
Description copied from interface:NameValuePairReturns the value.- Specified by:
getValuein interfaceNameValuePair- Returns:
- The value, may be
null .
-