public class

RestClient

extends Object
java.lang.Object
   ↳ com.microstrategy.webapi.restApi.RestClient
Known Direct Subclasses

Class Overview

Invokes a REST API call.

use a RestClientBuilder /IServerRestClientBuilder to create an instance of this class

Summary

Constants
int DEFAULT_HTTP_CONNECT_TIMEOUT
int DEFAULT_HTTP_READ_TIMEOUT
Public Methods
SimpleResponseWrapper execute()
Executes the API call based on the method types provided and returns a response@return
SimpleResponseWrapper getResponseWrapper()
Get the response object
static void initializeConnection(Integer readTimeout, Integer connectTimeout)
override the connection properties globally
static void setSSLSocketFactory(SSLSocketFactory sFactory)
Set the SSLSocketFactory globally which applies to all connection
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int DEFAULT_HTTP_CONNECT_TIMEOUT

Constant Value: 10000 (0x00002710)

public static final int DEFAULT_HTTP_READ_TIMEOUT

Constant Value: 120000 (0x0001d4c0)

Public Methods

public SimpleResponseWrapper execute ()

Executes the API call based on the method types provided and returns a response@return

Throws
IOException

public SimpleResponseWrapper getResponseWrapper ()

Get the response object

public static void initializeConnection (Integer readTimeout, Integer connectTimeout)

override the connection properties globally

public static void setSSLSocketFactory (SSLSocketFactory sFactory)

Set the SSLSocketFactory globally which applies to all connection

public String toString ()