@Service
public class ZosmfConnector
extends java.lang.Object
| Constructor and Description |
|---|
ZosmfConnector(ZosmfProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.http.client.HttpClient |
createIgnoreSSLClient() |
static org.apache.http.client.HttpClient |
createIgnoreSSLClientWithPassword(java.lang.String userName,
java.lang.String password) |
static org.apache.http.client.HttpClient |
createPreemptiveHttpClientIgnoreSSL(org.apache.http.client.CredentialsProvider credentialsProvider)
Make a Preemptive Basic Authentication HttpClient
|
java.net.URI |
getFullUrl(java.lang.String relativePath) |
java.net.URI |
getFullUrl(java.lang.String relativePath,
java.lang.String query) |
org.apache.http.Header |
getLtpaHeader(java.lang.String username,
java.lang.String password) |
org.apache.http.HttpResponse |
request(org.apache.http.client.methods.RequestBuilder requestBuilder) |
@Autowired public ZosmfConnector(ZosmfProperties properties)
public java.net.URI getFullUrl(java.lang.String relativePath)
throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic java.net.URI getFullUrl(java.lang.String relativePath,
java.lang.String query)
throws java.net.URISyntaxException
java.net.URISyntaxExceptionpublic org.apache.http.HttpResponse request(org.apache.http.client.methods.RequestBuilder requestBuilder)
throws java.io.IOException
java.io.IOExceptionpublic org.apache.http.Header getLtpaHeader(java.lang.String username,
java.lang.String password)
throws java.io.IOException,
java.security.KeyManagementException,
java.security.NoSuchAlgorithmException,
java.net.URISyntaxException
java.io.IOExceptionjava.security.KeyManagementExceptionjava.security.NoSuchAlgorithmExceptionjava.net.URISyntaxExceptionpublic static org.apache.http.client.HttpClient createPreemptiveHttpClientIgnoreSSL(org.apache.http.client.CredentialsProvider credentialsProvider)
throws java.security.NoSuchAlgorithmException,
java.security.KeyManagementException
credentialsProvider - is the credential Providerjava.security.NoSuchAlgorithmException - the exceptionjava.security.KeyManagementException - the exception toopublic static org.apache.http.client.HttpClient createIgnoreSSLClientWithPassword(java.lang.String userName,
java.lang.String password)
throws java.security.NoSuchAlgorithmException,
java.security.KeyManagementException
java.security.NoSuchAlgorithmExceptionjava.security.KeyManagementExceptionpublic static org.apache.http.client.HttpClient createIgnoreSSLClient()
throws java.security.KeyManagementException,
java.security.NoSuchAlgorithmException
java.security.KeyManagementExceptionjava.security.NoSuchAlgorithmException