Class Utils
java.lang.Object
de.fraunhofer.iosb.ilt.frostclient.utils.Utils
Various utilities.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddetectModels(SensorThingsService service, URL endpoint) static voidthrowIfNotOk(org.apache.http.client.methods.HttpRequestBase request, org.apache.http.client.methods.CloseableHttpResponse response) Throws a StatusCodeException if the given response did not have status code 2xx
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
throwIfNotOk
public static void throwIfNotOk(org.apache.http.client.methods.HttpRequestBase request, org.apache.http.client.methods.CloseableHttpResponse response) throws StatusCodeException Throws a StatusCodeException if the given response did not have status code 2xx- Parameters:
request- The request that generated the response.response- The response to check the status code of.- Throws:
StatusCodeException- If the response was not 2xx.
-
createInsecureHttpClient
public static void createInsecureHttpClient(SensorThingsService service) throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException -
detectModels
-