public final class HTTPTestTools extends Object
Modifier and Type | Method and Description |
---|---|
static String |
checkAtUrl(URL url) |
static String |
checkAtUrlByPost(URL url,
String postData) |
static String |
checkAtUrlByPost(URL url,
String postData,
Map<String,String> properties) |
static void |
disableCertChecks()
For testing, we disable all checks because we use a self-signed certificate on the server
side and we want this test to run everywhere without importing the certificate into the JVM's trust store.
|
static int |
getDefaultPort()
Get default port, but considering property
lt.default.port . |
public static int getDefaultPort()
lt.default.port
.public static void disableCertChecks() throws NoSuchAlgorithmException, KeyManagementException
public static String checkAtUrl(URL url) throws IOException
IOException
public static String checkAtUrlByPost(URL url, String postData) throws IOException
IOException
public static String checkAtUrlByPost(URL url, String postData, Map<String,String> properties) throws IOException
IOException