Package wt.federation

Class FederatedHttpConnection

java.lang.Object
wt.federation.FederatedHttpConnection
All Implemented Interfaces:
Externalizable, Serializable

public class FederatedHttpConnection extends Object implements Externalizable
Creates HTTP connections to remote systems, sends requests, and returns the responses received.

Supported API: true

Extendable: false
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor returning an instance initialized with a null URL, method specified as "GET", no payload, and default request headings.
    Constructor returning an instance initialized with the specified URL.
    Constructor returning an instance initialized with the specified URL and method.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addHeading(String keyword, String value)
    Adds a specified heading to an HTTP request.
    void
    addPayload(String contentType, byte[] octets)
    Augments the payload of a POST or PUT request with the specified array of octets of the specified MIME type/subtype.
    void
    addPayload(String contentType, String text)
    Augments the payload of a POST or PUT request with the specified string of the specified MIME type/subtype.
    void
    Augments the payload of a POST or PUT request with the specified MIME object.
    void
    Closes the HTTP connection and releases resources associated with it.
    Executes an HTTP request using a previously specified URL and method, and returns the MIME object received as a result.
    Executes an HTTP request using the specified URL and a previously specified method, and returns the MIME object received as a result.
    executeRequest(URL url, String method)
    Executes an HTTP request using the specified URL and method, and returns the MIME object received as a result.
    void
    Resets the payload and headings of the HTTP request to default values.
    void
    Sets the url property to the specified string.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait