Package io.meeds.chat.service.utils
Class HTTPHelper
java.lang.Object
io.meeds.chat.service.utils.HTTPHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static HttpResponse<String> sendHttpDeleteRequest(String url, String token, String contentAsJson) protected static HttpResponse<String> sendHttpGetRequest(String url, String token) protected static HttpResponse<String> sendHttpPostRequest(String url, String token, String contentAsJson) protected static HttpResponse<String> sendHttpPostRequest(String url, String token, String mimeType, byte[] fileContent) protected static HttpResponse<String> sendHttpPutRequest(String url, String token, String contentAsJson) static voidsendInvitationToMembers(ArrayList<String> strings, String matrixRoomId)
-
Constructor Details
-
HTTPHelper
public HTTPHelper()
-
-
Method Details
-
sendHttpGetRequest
protected static HttpResponse<String> sendHttpGetRequest(String url, String token) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
sendHttpPostRequest
protected static HttpResponse<String> sendHttpPostRequest(String url, String token, String contentAsJson) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
sendHttpPostRequest
protected static HttpResponse<String> sendHttpPostRequest(String url, String token, String mimeType, byte[] fileContent) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
sendHttpPutRequest
protected static HttpResponse<String> sendHttpPutRequest(String url, String token, String contentAsJson) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
sendHttpDeleteRequest
protected static HttpResponse<String> sendHttpDeleteRequest(String url, String token, String contentAsJson) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
sendInvitationToMembers
-