public abstract class AbstractConnection
extends java.lang.Object
Constructor and Description |
---|
AbstractConnection(boolean allowInsecure)
Connection to a REST API
|
Modifier and Type | Method and Description |
---|---|
boolean |
allowInsecureHosts(boolean allowInsecure) |
abstract java.lang.String |
getAuthorization()
Returns the Authorization header without the Authorization: keyword.
|
org.apache.http.client.fluent.Executor |
getExecutor()
access to the Executor.
|
java.lang.String |
getResponseString(java.lang.String url)
Gets a response to an HTTP call
|
public AbstractConnection(boolean allowInsecure)
allowInsecure
- Flag to allow insecure TLS/SSL connections. This is
not recommended in a production environmentpublic abstract java.lang.String getAuthorization()
public boolean allowInsecureHosts(boolean allowInsecure)
public org.apache.http.client.fluent.Executor getExecutor()
public java.lang.String getResponseString(java.lang.String url) throws java.io.IOException
inputString
- REST call to makejava.io.IOException