public class ConnectionManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_PROTOCOL |
static String |
HTTPS_PROTOCOL |
static String |
TLS |
| Constructor and Description |
|---|
ConnectionManager(String lbHost,
String lbPort,
String lbProxyHost,
String lbProxyPort,
String lbName,
boolean isSecure)
Creates a new instance of ConnectionManager
|
| Modifier and Type | Method and Description |
|---|---|
HttpURLConnection |
getConnection(String contextRoot)
creates a connection to the loadbalancer
|
public static final String HTTPS_PROTOCOL
public static final String HTTP_PROTOCOL
public static final String TLS
public HttpURLConnection getConnection(String contextRoot) throws IOException
contextRoot - context root that will be used in constructing the URLIOExceptionCopyright © 2017. All rights reserved.