Package wt.federation

Class FederatedHttpMessage

java.lang.Object
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:
  • Constructor Details

  • Method Details

    • 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 FederationServicesException
      Writes the HTTP message as a MIME object to the specified output stream.

      Supported API: true
      Parameters:
      outputStream -
      Throws:
      FederationServicesException