com.softwareag.connectivity.httpclient
Event Response


The event for the HTTP responses.

The payload of the response is held inside an AnyExtractor event for easy retrieval.
See Also:
com.apama.util.AnyExtractor - Use helper actions on the AnyExtractor event for extracting data.

Member summary
 stringmethod

The HTTP method used for the request.
 stringpath

The HTTP path URI used for the request.
 com.apama.util.AnyExtractorpayload

The response payload wrapped inside an AnyExtractor event for easy retrieval of the data.
 integerstatusCode

The status code of the HTTP request.
 stringstatusMessage

The status message of the HTTP request.
 com.softwareag.connectivity.httpclient.HttpOptionsoptions

The extra optional HTTP options.
 
Action summary
 stringgetCookie(string name)

Returns the HTTP cookie returned by the response. This is equivalent to calling options.cookies[name].
 stringgetHeader(string name)

Returns the HTTP header returned by the response. This is equivalent to calling options.headers[name].
 booleanisSuccess()

Indicate whether the HTTP request was successful.
 
Member detail

method

string method
The HTTP method used for the request.
See Also:
com.softwareag.connectivity.httpclient.RequestType - 

options

com.softwareag.connectivity.httpclient.HttpOptions options
The extra optional HTTP options.

path

string path
The HTTP path URI used for the request.

payload

com.apama.util.AnyExtractor payload
The response payload wrapped inside an AnyExtractor event for easy retrieval of the data.

statusCode

integer statusCode
The status code of the HTTP request.

statusMessage

string statusMessage
The status message of the HTTP request.
Action detail

getCookie

string getCookie(string name)
Returns the HTTP cookie returned by the response. This is equivalent to calling options.cookies[name].
Parameters:
name - The name of the cookie.
Throws:
Throws IllegalArgumentException if the cookie does not exist.

getHeader

string getHeader(string name)
Returns the HTTP header returned by the response. This is equivalent to calling options.headers[name].
Parameters:
name - The name of the header.
Throws:
Throws IllegalArgumentException if the header does not exist.

isSuccess

boolean isSuccess()
Indicate whether the HTTP request was successful.
Returns:
true if the HTTP request was sucessful.