|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.federation.FederatedHttpConnection
public class FederatedHttpConnection
Creates HTTP connections to remote systems, sends requests, and returns
the responses received.
Supported API: true
Extendable: false
| Constructor Summary | |
|---|---|
FederatedHttpConnection()
Constructor returning an instance initialized with a null URL, method specified as "GET", no payload, and default request headings. |
|
FederatedHttpConnection(String url)
Constructor returning an instance initialized with the specified URL. |
|
FederatedHttpConnection(URL url,
String method)
Constructor returning an instance initialized with the specified URL and method. |
|
| Method Summary | |
|---|---|
void |
addHeading(String keyword,
String value)
Adds a specified heading to an HTTP request. |
void |
addPayload(FederatedHttpBodyPart part)
Augments the payload of a POST or PUT request with the specified MIME object. |
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 |
close()
Closes the HTTP connection and releases resources associated with it. |
FederatedHttpResponse |
executeRequest()
Executes an HTTP request using a previously specified URL and method, and returns the MIME object received as a result. |
FederatedHttpResponse |
executeRequest(URL url)
Executes an HTTP request using the specified URL and a previously specified method, and returns the MIME object received as a result. |
FederatedHttpResponse |
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 |
resetRequest()
Resets the payload and headings of the HTTP request to default values. |
void |
setUrl(String url)
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 |
| Constructor Detail |
|---|
public FederatedHttpConnection()
throws WTPropertyVetoException
WTPropertyVetoException
public FederatedHttpConnection(String url)
throws WTPropertyVetoException
url -
WTPropertyVetoException
public FederatedHttpConnection(URL url,
String method)
throws WTPropertyVetoException
url - method -
WTPropertyVetoException| Method Detail |
|---|
public void addPayload(String contentType,
String text)
throws WTPropertyVetoException
contentType - text -
WTPropertyVetoException
public void addPayload(String contentType,
byte[] octets)
throws WTPropertyVetoException
contentType - octets -
WTPropertyVetoException
public void addPayload(FederatedHttpBodyPart part)
throws WTPropertyVetoException
part -
WTPropertyVetoException
public void addHeading(String keyword,
String value)
keyword - value -
public void resetRequest()
throws WTPropertyVetoException
WTPropertyVetoException
public void close()
throws wt.federation.FederationServicesException
wt.federation.FederationServicesException
public FederatedHttpResponse executeRequest()
throws wt.federation.FederationServicesException
wt.federation.FederationServicesException
public FederatedHttpResponse executeRequest(URL url,
String method)
throws wt.federation.FederationServicesException
url - method -
wt.federation.FederationServicesException
public FederatedHttpResponse executeRequest(URL url)
throws wt.federation.FederationServicesException
url -
wt.federation.FederationServicesException
public void setUrl(String url)
throws WTPropertyVetoException
url -
WTPropertyVetoException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||