Sending a Secure Synchronous Request

To send synchronous requests using SSL, use this function.

Description

This function is the same as the sendRequest() function.

For secure communication, use sendRequest() function along with the setSecureInfo() catalog function for SSL-related parameters :

Object connectionInfo= HTTP.ConnectionInfo.createHTTPConnectionInfo(true);
HTTP.ConnectionInfo.setSecureInfo(Object connectionInfo, String sslProtocol, Object clientIdKeyStore, String clientIdPassword, Object trustedCertsKeystore, String trustedCertsPassword, boolean verifyHostName)

Parameters

Name Type Description
url
String
The URL for the server that will receive this request.
requestEvent
SimpleEvent
The event to serialize and send to the server.
responseEventURI
String
The fully qualified path of an event. This event is created when the response is received.
clientIdKeystore
Object
The keystore object for client identity.
clientIdPassword
String
Password for the client ID keystore.
trustedCertsKeystore
Object
Keystore Object for trusted certificates.
trustedCertsPassword
String
Password for the trusted certificates keystore.
verifyHostName
Boolean
Flag for checking if a host name matches the names stored in the server’s certificates.
timeoutMillis
Long
The timeout interval for the operation.

If the value is -1, the server waits forever.

httpConnectionInfo
Object
HTTP Connection Info object.

Returns

Type Description
Event
An event as a response to the request