Class HttpClient
java.lang.Object
io.github.qo0p.eimzo.server.client.http.HttpClient
- All Implemented Interfaces:
Client
- Author:
- administrator
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionHttpClient(URL baseUrl) HttpClient(URL baseUrl, int connectionTimeout, int readTimeout) -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpClient.Resultpost(URL url, Map<String, String> headers, byte[] body, Proxy proxy, int connectionTimeout, int readTimeout) setConnectionTimeout(int connectionTimeout) setReadTimeout(int readTimeout) verifyPkcs7Attached(String userRealIP, String host, String pkcs7b64) verifyPkcs7Detached(String userRealIP, String host, String data64, String pkcs7b64)
-
Constructor Details
-
HttpClient
-
HttpClient
-
-
Method Details
-
setProxy
-
setConnectionTimeout
-
setReadTimeout
-
auth
-
verifyPkcs7Attached
public Pkcs7VerifyJsonResponse verifyPkcs7Attached(String userRealIP, String host, String pkcs7b64) throws Exception - Specified by:
verifyPkcs7Attachedin interfaceClient- Throws:
Exception
-
verifyPkcs7Detached
public Pkcs7VerifyJsonResponse verifyPkcs7Detached(String userRealIP, String host, String data64, String pkcs7b64) throws Exception - Specified by:
verifyPkcs7Detachedin interfaceClient- Throws:
Exception
-
post
public static HttpClient.Result post(URL url, Map<String, String> headers, byte[] body, Proxy proxy, int connectionTimeout, int readTimeout) throws IOException- Throws:
IOException
-