|
| 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 More...
|
|
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 More...
|
|
HashMap< String, Object > | getInfo () throws Throwable |
| returns a hash of information about the current WSDL More...
|
|
void | setSendEncoding (String enc) throws Throwable |
| change the data content encoding (compression) option for the object; see EncodingSupport for valid options More...
|
|
void | setContentEncoding (String enc) throws Throwable |
| sets the request and desired response encoding for the object; see EncodingSupport for valid options More...
|
|
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 More...
|
|
HashMap< String, Object > | getDefaultHeaders () throws Throwable |
| returns the hash of default headers to sent in all requests More...
|
|
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 More...
|
|
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. More...
|
|
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". More...
|
|
String | getHTTPVersion () throws Throwable |
| Returns the HTTP protocol version string used in outgoing messages. More...
|
|
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. More...
|
|
boolean | isSecure () throws Throwable |
| Returns true if the current connection is encrypted, false if not. More...
|
|
void | connect () throws Throwable |
| Connects to the remote socket; SSL/TLS negotiation is performed if required. More...
|
|
void | disconnect () throws Throwable |
| Disconnects from the remote socket if a connection is established (otherwise does nothing) More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
String | head (String path, Map< String, Object > headers) throws Throwable |
| Sends an HTTP HEAD request and returns as hash of the headers received. More...
|
|
String | head (String path) throws Throwable |
| Sends an HTTP HEAD request and returns as hash of the headers received. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
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. More...
|
|
void | setTimeout (int timeout_ms) throws Throwable |
| Sets the default I/O timeout value in milliseconds. More...
|
|
int | getTimeout () throws Throwable |
| Returns the default I/O timeout as an integer in milliseconds. More...
|
|
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. More...
|
|
String | getEncoding () throws Throwable |
| Returns the character encoding used for the object. More...
|
|
void | setURL (String url) throws Throwable |
| Sets a new URL value for the next connection. More...
|
|
String | getURL () throws Throwable |
| Returns the current URL. More...
|
|
void | setProxyURL () throws Throwable |
| Clears the new proxy URL value for the next connection. More...
|
|
void | setProxyURL (String url) throws Throwable |
| Sets a new proxy URL value for the next connection. More...
|
|
String | getProxyURL () throws Throwable |
| Returns the current proxy URL as a string or null if no proxy URL is set. More...
|
|
void | clearProxyURL () throws Throwable |
| Clears the new proxy URL value for the next connection. More...
|
|
void | setProxySecure (boolean b) throws Throwable |
| Sets the SSL/TLS flag for the next connection to the proxy. More...
|
|
boolean | isProxySecure () throws Throwable |
| Returns the SSL/TLS flag for the next proxy connection. More...
|
|
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) More...
|
|
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) More...
|
|
void | setConnectTimeout (int timeout_ms) throws Throwable |
| Sets the connect timeout in milliseconds. More...
|
|
int | getConnectTimeout () throws Throwable |
| Returns the connect timeout as an integer in milliseconds. More...
|
|
int | setNoDelay (boolean b) throws Throwable |
| Sets the TCP_NODELAY setting for the object. More...
|
|
boolean | getNoDelay () throws Throwable |
| Returns the TCP_NODELAY setting for the HTTPClient object. More...
|
|
boolean | isConnected () throws Throwable |
| Returns true or false giving the current connection state. More...
|
|
void | setUserPassword (String user, String pass) throws Throwable |
| Sets the username and password for the connection; call after HTTPClient::setURL() More...
|
|
void | setUserPassword () throws Throwable |
| Clears the username and password for the connection. More...
|
|
void | clearUserPassword () throws Throwable |
| Clears the username and password for the connection. More...
|
|
void | setProxyUserPassword (String user, String pass) throws Throwable |
| Sets the username and password for the connection to the proxy; call after HTTPClient::setProxyURL() More...
|
|
void | setProxyUserPassword () throws Throwable |
| Clears the username and password for the next proxy connection. More...
|
|
void | clearProxyUserPassword () throws Throwable |
| Clears the username and password for the next proxy connection. More...
|
|
void | setDefaultPath (String path) throws Throwable |
| Sets the default path used by the object if no path is set in the URL. More...
|
|
String | getDefaultPath () throws Throwable |
| Returns the default path used by the object if no path is set in the URL. More...
|
|
String | getConnectionPath () throws Throwable |
| Returns the current connection path set in the URL. More...
|
|
HashMap< String, Object > | getUsageInfo () throws Throwable |
| Returns performance statistics for the socket. More...
|
|
void | clearStats () throws Throwable |
| Clears performance statistics. More...
|
|
void | setPersistent () throws Throwable |
| temporarily disables implicit reconnections; must be called when the server is already connected More...
|
|
| QoreObjectWrapper (QoreObject obj) |
| creates the wrapper object with the Qore object
|
|
void | release () |
| releases the Qore object; do not call any further methods on the object after this call
|
|
QoreObject | getQoreObject () |
| returns the Qore object
|
|
String | className () |
| returns the class name for the Qore object
|
|
boolean | instanceOf (String class_name) |
| returns true if the object is an instance of the given class
|
|