|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.federation.FederatedHttpBodyPart
public class FederatedHttpBodyPart
Defines and manages MIME body parts contained in HTTP request and response
messages.
Supported API: true
Extendable: false
| Constructor Summary | |
|---|---|
FederatedHttpBodyPart()
Constructor returning an instance initialized with an empty set of MIME headings and null content. |
|
FederatedHttpBodyPart(FederatedHttpInputStream inputStream,
String boundary)
Constructor returning an instance initialized from the result of reading the specified input stream. |
|
FederatedHttpBodyPart(String contentType)
Constructor returning an instance initialized with the specified MIME content type and null content. |
|
| Method Summary | |
|---|---|
void |
addHeading(String line)
Parses and adds the specified line to the set of MIME headings. |
void |
addHeading(String keyword,
String value)
Adds the heading specified by keyword/value pair to the set of MIME headings. |
static String |
getBoundary(String contentType)
Returns the boundary string specified within a Content-Type heading. |
String |
getHeading(String keyword)
Returns the heading with the specified keyword. |
FederatedHttpBodyPart |
getPart(int index)
Returns the body part associated with the specified index. |
int |
getSize()
Returns the size, in octets, of the body part. |
boolean |
isLastPart()
Returns true if this body part is the last body part of a MIME multipart object (its boundary line is the final boundary of the multipart object). |
boolean |
isMultipart()
Returns true if the content of the body part is a nested multipart object. |
void |
removeHeading(String keyword)
Removes the heading with the specified keyword. |
int |
writeTo(OutputStream outputStream)
Writes the body part in HTTP MIME format to the specified output stream, and returns the number of octets written. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FederatedHttpBodyPart()
throws WTPropertyVetoException
WTPropertyVetoException
public FederatedHttpBodyPart(String contentType)
throws WTPropertyVetoException
contentType -
WTPropertyVetoException
public FederatedHttpBodyPart(FederatedHttpInputStream inputStream,
String boundary)
throws WTPropertyVetoException,
wt.federation.FederationServicesException
inputStream - boundary -
WTPropertyVetoException
wt.federation.FederationServicesException| Method Detail |
|---|
public int getSize()
throws wt.federation.FederationServicesException
wt.federation.FederationServicesException
public int writeTo(OutputStream outputStream)
throws wt.federation.FederationServicesException
outputStream -
wt.federation.FederationServicesExceptionpublic void addHeading(String line)
line -
public void addHeading(String keyword,
String value)
keyword - value - public String getHeading(String keyword)
keyword -
public void removeHeading(String keyword)
keyword - public boolean isMultipart()
public static String getBoundary(String contentType)
contentType -
public FederatedHttpBodyPart getPart(int index)
index -
public boolean isLastPart()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||