Package wt.federation
Class FederatedHttpMultipart
java.lang.Object
wt.federation.FederatedHttpMultipart
- All Implemented Interfaces:
Externalizable,Serializable
Represents a MIME multipart object contained in an HTTP request or response
message.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor returning an instance initialized with an empty body part vector.FederatedHttpMultipart(FederatedHttpInputStream inputStream, String boundary) Constructor returning an instance initialized from the result of reading the specified input stream. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPart(FederatedHttpBodyPart part) Adds the specified part to the MIME multipart object.getPart(int index) Returns the specified part of the MIME multipart object.voidremovePart(int index) Removes the specified part from the MIME multipart object.
-
Constructor Details
-
FederatedHttpMultipart
Constructor returning an instance initialized with an empty body part vector.
Supported API: true- Throws:
WTPropertyVetoException
-
FederatedHttpMultipart
public FederatedHttpMultipart(FederatedHttpInputStream inputStream, String boundary) throws WTPropertyVetoException, FederationServicesException Constructor returning an instance initialized from the result of reading the specified input stream. The boundary argument specifies the MIME boundary string separating the individual body parts of the multipart object.
Supported API: true- Parameters:
inputStream-boundary-- Throws:
WTPropertyVetoExceptionFederationServicesException
-
-
Method Details
-
getPart
Returns the specified part of the MIME multipart object.
Supported API: true- Parameters:
index-- Returns:
- FederatedHttpBodyPart
-
addPart
Adds the specified part to the MIME multipart object.
Supported API: true- Parameters:
part-
-
removePart
public void removePart(int index) Removes the specified part from the MIME multipart object.
Supported API: true- Parameters:
index-
-