wt.federation
Class FederatedHttpMessage

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

public class FederatedHttpMessage
extends Object
implements Externalizable

Represents an HTTP protocol request or response message.

Supported API: true

Extendable: false

See Also:
Serialized Form

Constructor Summary
FederatedHttpMessage()
          Constructor 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
 void addHeading(String line)
          Parses and adds the specified line to the set of HTTP message headings.
 void addHeading(String keyword, String value)
          Adds the specified keyword/value pair to the set of HTTP message headings.
 Date getDateHeading(String keyword)
          Returns the specified date heading from the heading vector.
 String getHeading(String keyword)
          Returns the specified heading from the heading vector.
 void removeHeading(String keyword)
          Removes the specified heading from the set of HTTP message headings.
 void writeTo(OutputStream outputStream)
          Writes the HTTP message as a MIME object to the specified output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FederatedHttpMessage

public FederatedHttpMessage()
                     throws WTPropertyVetoException
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,
                            wt.federation.FederationServicesException
Constructor returning an instance initialized with the results of reading and parsing a specified input stream.

Supported API: true

Parameters:
inputStream -
Throws:
WTPropertyVetoException
wt.federation.FederationServicesException
Method Detail

addHeading

public void addHeading(String line)
                throws WTPropertyVetoException
Parses and adds the specified line to the set of HTTP message headings.

Supported API: true

Parameters:
line -
Throws:
WTPropertyVetoException

addHeading

public void addHeading(String keyword,
                       String value)
                throws WTPropertyVetoException
Adds the specified keyword/value pair to the set of HTTP message headings.

Supported API: true

Parameters:
keyword -
value -
Throws:
WTPropertyVetoException

getHeading

public String getHeading(String keyword)
Returns the specified heading from the heading vector.

Supported API: true

Parameters:
keyword -
Returns:
String

getDateHeading

public Date getDateHeading(String keyword)
Returns the specified date heading from the heading vector.

Supported API: true

Parameters:
keyword -
Returns:
Date

removeHeading

public void removeHeading(String keyword)
Removes the specified heading from the set of HTTP message headings.

Supported API: true

Parameters:
keyword -

writeTo

public void writeTo(OutputStream outputStream)
             throws wt.federation.FederationServicesException
Writes the HTTP message as a MIME object to the specified output stream.

Supported API: true

Parameters:
outputStream -
Throws:
wt.federation.FederationServicesException