|
|
| SoapClient (QoreObject ds) |
| | creates the object
|
| |
| | SoapClient (Map< String, Object > h) throws Throwable |
| | creates the object based on a WSDL which is parsed to a WebService object which provides the basis for all communication with this object
|
| |
| Object | callOperation (String operation, Object args, Map< String, Object > opts) throws Throwable |
| | makes a server call with the given operation, arguments, options, and optional info hash reference and returns the result
|
| |
| HashMap< String, Object > | getInfo () throws Throwable |
| | returns a hash of information about the current WSDL
|
| |
| void | setSendEncoding (String enc) throws Throwable |
| | change the data content encoding (compression) option for the object; see EncodingSupport for valid options
|
| |
| void | setContentEncoding (String enc) throws Throwable |
| | sets the request and desired response encoding for the object; see EncodingSupport for valid options
|
| |
| void | addDefaultHeaders (Map< String, Object > h) throws Throwable |
| | adds default headers to each request; these headers will be sent in all requests but can be overridden in requests as well
|
| |
| HashMap< String, Object > | getDefaultHeaders () throws Throwable |
| | returns the hash of default headers to sent in all requests
|
| |
| String | getSendEncoding () throws Throwable |
| | returns the current data content encoding (compression) object or nothing if no encoding option is set; see EncodingSupport for valid options
|
| |
|
void | log (String msg) throws Throwable |
| | sends a log message to the log closure or call reference, if any
|
| |
|
void | dbglog (String msg) throws Throwable |
| | sends a log message to the debug log closure or call reference, if any
|
| |
|
| HTTPClient (QoreObject ds) |
| | creates the object
|
| |
| | HTTPClient (Map< String, Object > opts) throws Throwable |
| | Creates the HTTPClient object based on the option parameter passed.
|
| |
| void | setHTTPVersion (String ver) throws Throwable |
| | Sets the HTTP protocol version string for headers in outgoing messages, allowed values are "1.0" and "1.1".
|
| |
| String | getHTTPVersion () throws Throwable |
| | Returns the HTTP protocol version string used in outgoing messages.
|
| |
| void | setSecure (boolean secure) throws Throwable |
| | Sets the object to make a secure SSL/TLS connection on the next connect if the passed argument is true, or an unencrypted cleartext connection if it is false.
|
| |
| boolean | isSecure () throws Throwable |
| | Returns true if the current connection is encrypted, false if not.
|
| |
| void | connect () throws Throwable |
| | Connects to the remote socket; SSL/TLS negotiation is performed if required.
|
| |
| void | disconnect () throws Throwable |
| | Disconnects from the remote socket if a connection is established (otherwise does nothing)
|
| |
| HashMap< String, Object > | send (String body, String method, String path, Map< String, Object > headers, boolean getbody) throws Throwable |
| | Sends an HTTP request with the specified method and optional message body and returns headers and any body received as a response in a hash format.
|
| |
| HashMap< String, Object > | send (String body, String method, String path, Map< String, Object > headers) throws Throwable |
| | Sends an HTTP request with the specified method and optional message body and returns headers and any body received as a response in a hash format.
|
| |
| HashMap< String, Object > | send (String body, String method, String path) throws Throwable |
| | Sends an HTTP request with the specified method and optional message body and returns headers and any body received as a response in a hash format.
|
| |
| HashMap< String, Object > | send (String body, String method) throws Throwable |
| | Sends an HTTP request with the specified method and optional message body and returns headers and any body received as a response in a hash format.
|
| |
| HashMap< String, Object > | send (byte[] body, String method, String path, Map< String, Object > headers, boolean getbody) throws Throwable |
| | Sends an HTTP request with the specified method and optional message body and returns headers and any body received as a response in a hash format.
|
| |
| HashMap< String, Object > | send (byte[] body, String method, String path, Map< String, Object > headers) throws Throwable |
| | Sends an HTTP request with the specified method and optional message body and returns headers and any body received as a response in a hash format.
|
| |
| HashMap< String, Object > | send (byte[] body, String method, String path) throws Throwable |
| | Sends an HTTP request with the specified method and optional message body and returns headers and any body received as a response in a hash format.
|
| |
| HashMap< String, Object > | send (byte[] body, String method) throws Throwable |
| | Sends an HTTP request with the specified method and optional message body and returns headers and any body received as a response in a hash format.
|
| |
| String | get (String path, Map< String, Object > headers) throws Throwable |
| | Sends an HTTP GET request and returns the message body received as a string or null if no message body is received.
|
| |
| String | get (String path) throws Throwable |
| | Sends an HTTP GET request and returns the message body received as a string or null if no message body is received.
|
| |
| String | head (String path, Map< String, Object > headers) throws Throwable |
| | Sends an HTTP HEAD request and returns as hash of the headers received.
|
| |
| String | head (String path) throws Throwable |
| | Sends an HTTP HEAD request and returns as hash of the headers received.
|
| |
| String | post (String path, String body, Map< String, Object > headers) throws Throwable |
| | Sends an HTTP POST request with a message body and returns the message body received as a string or null if no message body is received.
|
| |
| String | post (String path, String body) throws Throwable |
| | Sends an HTTP POST request with a message body and returns the message body received as a string or null if no message body is received.
|
| |
| String | post (String path) throws Throwable |
| | Sends an HTTP POST request without a message body and returns the response message body received as a string or null if no message body is received.
|
| |
| String | post (String path, byte[] body, Map< String, Object > headers) throws Throwable |
| | Sends an HTTP POST request with a message body and returns the message body received as a string or null if no message body is received.
|
| |
| String | post (String path, byte[] body) throws Throwable |
| | Sends an HTTP POST request with a message body and returns the message body received as a string or null if no message body is received.
|
| |
| void | setTimeout (int timeout_ms) throws Throwable |
| | Sets the default I/O timeout value in milliseconds.
|
| |
| int | getTimeout () throws Throwable |
| | Returns the default I/O timeout as an integer in milliseconds.
|
| |
| void | setEncoding (String encoding) throws Throwable |
| | Sets the string encoding for the object; any strings deserialized with this object will be tagged with this character encoding.
|
| |
| String | getEncoding () throws Throwable |
| | Returns the character encoding used for the object.
|
| |
| void | setURL (String url) throws Throwable |
| | Sets a new URL value for the next connection.
|
| |
| String | getURL () throws Throwable |
| | Returns the current URL.
|
| |
| void | setProxyURL () throws Throwable |
| | Clears the new proxy URL value for the next connection.
|
| |
| void | setProxyURL (String url) throws Throwable |
| | Sets a new proxy URL value for the next connection.
|
| |
| String | getProxyURL () throws Throwable |
| | Returns the current proxy URL as a string or null if no proxy URL is set.
|
| |
| void | clearProxyURL () throws Throwable |
| | Clears the new proxy URL value for the next connection.
|
| |
| void | setProxySecure (boolean b) throws Throwable |
| | Sets the SSL/TLS flag for the next connection to the proxy.
|
| |
| boolean | isProxySecure () throws Throwable |
| | Returns the SSL/TLS flag for the next proxy connection.
|
| |
| void | setMaxRedirects (int mr) throws Throwable |
| | Updates the setting for the max_redirects value for the object (maximum number of HTTP redirects that will be processed before an exception is raised)
|
| |
| int | getMaxRedirects () throws Throwable |
| | Returns the current max_redirects value for the object (the maximum number of HTTP redirects that will be processed before an exception is raised)
|
| |
| void | setConnectTimeout (int timeout_ms) throws Throwable |
| | Sets the connect timeout in milliseconds.
|
| |
| int | getConnectTimeout () throws Throwable |
| | Returns the connect timeout as an integer in milliseconds.
|
| |
| int | setNoDelay (boolean b) throws Throwable |
| | Sets the TCP_NODELAY setting for the object.
|
| |
| boolean | getNoDelay () throws Throwable |
| | Returns the TCP_NODELAY setting for the HTTPClient object.
|
| |
| boolean | isConnected () throws Throwable |
| | Returns true or false giving the current connection state.
|
| |
| void | setUserPassword (String user, String pass) throws Throwable |
| | Sets the username and password for the connection; call after HTTPClient::setURL()
|
| |
| void | setUserPassword () throws Throwable |
| | Clears the username and password for the connection.
|
| |
| void | clearUserPassword () throws Throwable |
| | Clears the username and password for the connection.
|
| |
| void | setProxyUserPassword (String user, String pass) throws Throwable |
| | Sets the username and password for the connection to the proxy; call after HTTPClient::setProxyURL()
|
| |
| void | setProxyUserPassword () throws Throwable |
| | Clears the username and password for the next proxy connection.
|
| |
| void | clearProxyUserPassword () throws Throwable |
| | Clears the username and password for the next proxy connection.
|
| |
| void | setDefaultPath (String path) throws Throwable |
| | Sets the default path used by the object if no path is set in the URL.
|
| |
| String | getDefaultPath () throws Throwable |
| | Returns the default path used by the object if no path is set in the URL.
|
| |
| String | getConnectionPath () throws Throwable |
| | Returns the current connection path set in the URL.
|
| |
| void | setConnectionPath (String uri_path) throws Throwable |
| | Overrides any connection path set in the URL.
|
| |
| void | setConnectionPath () throws Throwable |
| | Overrides any connection path set in the URL.
|
| |
| HashMap< String, Object > | getUsageInfo () throws Throwable |
| | Returns performance statistics for the socket.
|
| |
| void | clearStats () throws Throwable |
| | Clears performance statistics.
|
| |
| void | setPersistent () throws Throwable |
| | temporarily disables implicit reconnections; must be called when the server is already connected
|
| |
| boolean | setErrorPassthru (boolean set) throws Throwable |
| | set the error passthru status
|
| |
| boolean | setErrorPassthru () throws Throwable |
| | set the error passthru status
|
| |
| boolean | getErrorPassthru () throws Throwable |
| | get the error passthru status
|
| |
| boolean | setRedirectPassthru (boolean set) throws Throwable |
| | set the redirect passthru status
|
| |
| boolean | setRedirectPassthru () throws Throwable |
| | set the redirect passthru status
|
| |
| boolean | getRedirectPassthru () throws Throwable |
| | get the redirect passthru status
|
| |
| boolean | setEncodingPassthru (boolean set) throws Throwable |
| | set the encoding passthru status
|
| |
| boolean | setEncodingPassthru () throws Throwable |
| | set the encoding passthru status
|
| |
| boolean | getEncodingPassthru () throws Throwable |
| | get the encoding passthru status
|
| |
| String | getHostHeaderValue () throws Throwable |
| | returns the Host header value for this object
|
| |