wt.federation
Class FederatedHttpMultipart

java.lang.Object
  extended by wt.federation.FederatedHttpMultipart
All Implemented Interfaces:
Externalizable, Serializable

public class FederatedHttpMultipart
extends Object
implements Externalizable

Represents a MIME multipart object contained in an HTTP request or response message.

Supported API: true

Extendable: false

See Also:
Serialized Form

Constructor Summary
FederatedHttpMultipart()
          Constructor 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
 void addPart(FederatedHttpBodyPart part)
          Adds the specified part to the MIME multipart object.
 FederatedHttpBodyPart getPart(int index)
          Returns the specified part of the MIME multipart object.
 void removePart(int index)
          Removes the specified part from the MIME multipart object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FederatedHttpMultipart

public FederatedHttpMultipart()
                       throws WTPropertyVetoException
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,
                              wt.federation.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:
WTPropertyVetoException
wt.federation.FederationServicesException
Method Detail

getPart

public FederatedHttpBodyPart getPart(int index)
Returns the specified part of the MIME multipart object.

Supported API: true

Parameters:
index -
Returns:
FederatedHttpBodyPart

addPart

public void addPart(FederatedHttpBodyPart part)
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 -