Package org.languagetool.server
Class HTTPTestTools
java.lang.Object
org.languagetool.server.HTTPTestTools
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcheckAtUrl(URL url) static StringcheckAtUrlByPost(URL url, String postData) static Stringstatic voidFor 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 intGet default port, but considering propertylt.default.port.
-
Constructor Details
-
HTTPTestTools
private HTTPTestTools()
-
-
Method Details
-
getDefaultPort
public static int getDefaultPort()Get default port, but considering propertylt.default.port. -
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. See http://stackoverflow.com/questions/2893819/telling-java-to-accept-self-signed-ssl-certificate -
checkAtUrl
- Throws:
IOException
-
checkAtUrlByPost
- Throws:
IOException
-
checkAtUrlByPost
public static String checkAtUrlByPost(URL url, String postData, Map<String, String> properties) throws IOException- Throws:
IOException
-