Package com.santaba.agent.groovyapi.http
Class SSLClient
- java.lang.Object
-
- com.logicmonitor.common.sse.utils.SSEResource
-
- com.santaba.agent.groovyapi.http.Client
-
- com.santaba.agent.groovyapi.http.SSLClient
-
public class SSLClient extends Client
This class provides functions to do HTTPS related operations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.santaba.agent.groovyapi.http.Client
Client.SBHostVerifier, Client.SBTrustManager, Client.Session
-
-
Field Summary
-
Fields inherited from class com.santaba.agent.groovyapi.http.Client
DEFAULT_TLS
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SSLClient(org.apache.http.impl.client.DefaultHttpClient client)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SSLClient
open(java.lang.String host)
Get ssl client on DEFAULT_HTTPS_PORTstatic SSLClient
open(java.lang.String host, int port)
Get ssl clientstatic SSLClient
open(java.lang.String host, int port, java.lang.String tlsVersion)
Get ssl client with specific TLS versionstatic SSLClient
open(java.lang.String host, int port, java.lang.String user, java.lang.String pass)
Get ssl client with credentialsstatic SSLClient
open(java.lang.String host, int port, java.lang.String user, java.lang.String pass, java.lang.String tlsVersion)
Get ssl client with credentials and specific TLS versionstatic SSLClient
open(java.lang.String host, java.lang.String user, java.lang.String pass)
Get ssl client on DEFAULT_HTTPS_PORT with credentialsjava.lang.String
toString()
-
Methods inherited from class com.santaba.agent.groovyapi.http.Client
_createHTTPClient, close, delete, get, get, getDefaultClient, getHeader, getHeaders, getLastHTTPResponse, getResponseBody, getStatusCode, getTimeStatistics, isReleased, post, put, release, request, setAuthentication, setConnectTimeout, setFollowRedirect, setHTTPProxy, setHTTPProxy, setReadTimeout
-
-
-
-
Method Detail
-
open
public static SSLClient open(java.lang.String host) throws java.io.IOException
Get ssl client on DEFAULT_HTTPS_PORT- Parameters:
host
- The https host url- Returns:
- SSLClient
- Throws:
java.io.IOException
- If some other I/O error occurs
-
open
public static SSLClient open(java.lang.String host, int port) throws java.io.IOException
Get ssl client- Parameters:
host
- The https host urlport
- The https host port- Returns:
- SSLClient
- Throws:
java.io.IOException
- If some other I/O error occurs
-
open
public static SSLClient open(java.lang.String host, int port, java.lang.String tlsVersion) throws java.io.IOException
Get ssl client with specific TLS version- Parameters:
host
- The https host urlport
- The https host porttlsVersion
- The TLS version like TLS, TLSv1, TLSv1.1, TLSv1.2- Returns:
- SSLClient
- Throws:
java.io.IOException
- If some other I/O error occurs
-
open
public static SSLClient open(java.lang.String host, java.lang.String user, java.lang.String pass) throws java.io.IOException
Get ssl client on DEFAULT_HTTPS_PORT with credentials- Parameters:
host
- The https host urluser
- The https host auth usernamepass
- The https host auth password- Returns:
- SSLClient
- Throws:
java.io.IOException
- If some other I/O error occurs
-
open
public static SSLClient open(java.lang.String host, int port, java.lang.String user, java.lang.String pass) throws java.io.IOException
Get ssl client with credentials- Parameters:
host
- The https host urlport
- The https host portuser
- The https host auth usernamepass
- The https host auth password- Returns:
- SSLClient
- Throws:
java.io.IOException
- If some other I/O error occurs
-
open
public static SSLClient open(java.lang.String host, int port, java.lang.String user, java.lang.String pass, java.lang.String tlsVersion) throws java.io.IOException
Get ssl client with credentials and specific TLS version- Parameters:
host
- The https host urlport
- The https host portuser
- The https host auth usernamepass
- The https host auth passwordtlsVersion
- The TLS version like TLS, TLSv1, TLSv1.1, TLSv1.2- Returns:
- SSLClient
- Throws:
java.io.IOException
- If some other I/O error occurs
-
-