Package wt.federation
Class FederatedHttpMessage
java.lang.Object
wt.federation.FederatedHttpMessage
- All Implemented Interfaces:
Externalizable,Serializable
Represents an HTTP protocol 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 set of headings and a null body.FederatedHttpMessage(FederatedHttpInputStream inputStream) Constructor returning an instance initialized with the results of reading and parsing a specified input stream. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHeading(String line) Parses and adds the specified line to the set of HTTP message headings.voidaddHeading(String keyword, String value) Adds the specified keyword/value pair to the set of HTTP message headings.getDateHeading(String keyword) Returns the specified date heading from the heading vector.getHeading(String keyword) Returns the specified heading from the heading vector.voidremoveHeading(String keyword) Removes the specified heading from the set of HTTP message headings.voidwriteTo(OutputStream outputStream) Writes the HTTP message as a MIME object to the specified output stream.
-
Constructor Details
-
FederatedHttpMessage
Constructor returning an instance initialized with an empty set of headings and a null body.
Supported API: true- Throws:
WTPropertyVetoException
-
FederatedHttpMessage
public FederatedHttpMessage(FederatedHttpInputStream inputStream) throws WTPropertyVetoException, FederationServicesException Constructor returning an instance initialized with the results of reading and parsing a specified input stream.
Supported API: true- Parameters:
inputStream-- Throws:
WTPropertyVetoExceptionFederationServicesException
-
-
Method Details
-
addHeading
Parses and adds the specified line to the set of HTTP message headings.
Supported API: true- Parameters:
line-- Throws:
WTPropertyVetoException
-
addHeading
Adds the specified keyword/value pair to the set of HTTP message headings.
Supported API: true- Parameters:
keyword-value-- Throws:
WTPropertyVetoException
-
getHeading
Returns the specified heading from the heading vector.
Supported API: true- Parameters:
keyword-- Returns:
- String
-
getDateHeading
Returns the specified date heading from the heading vector.
Supported API: true- Parameters:
keyword-- Returns:
- Date
-
removeHeading
Removes the specified heading from the set of HTTP message headings.
Supported API: true- Parameters:
keyword-
-
writeTo
Writes the HTTP message as a MIME object to the specified output stream.
Supported API: true- Parameters:
outputStream-- Throws:
FederationServicesException
-