Package co.datadome.api.common
Class DataDomeService
java.lang.Object
co.datadome.api.common.DataDomeService
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataDomeService(String apiKey, String apiHost, boolean ssl, int connectTimeout, int readTimeout, org.apache.http.impl.client.CloseableHttpClient httpClient) DataDomeService(String apiKey, String apiHost, boolean ssl, String proxyServer, int proxyPort, boolean proxySSL, int connectTimeout, int readTimeout, int maxTotalConnections) -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidaddParam(List<org.apache.http.NameValuePair> postData, String name, String value, int limit, boolean fromEnd) protected org.apache.http.client.methods.HttpPostcreateHttpPost(DataDomeRequest request) protected static booleanisConfirmedStatus(int statusCode, org.apache.http.Header header) protected static StringtruncateFromEndStringBaseOnUrlEncodedSize(String s, int limit) protected static StringtruncateStringBaseOnUrlEncodedSize(String s, int limit) protected static inturlEncodedCharSize(char c) validateRequest(DataDomeRequest request)
-
Field Details
-
DEFAULT_API_HOST
- See Also:
-
DEFAULT_API_SSL
-
DEFAULT_CONNECT_TIMEOUT
public static final int DEFAULT_CONNECT_TIMEOUT- See Also:
-
DEFAULT_READ_TIMEOUT
public static final int DEFAULT_READ_TIMEOUT- See Also:
-
DEFAULT_MAX_TOTAL_CONNECTIONS
public static final int DEFAULT_MAX_TOTAL_CONNECTIONS- See Also:
-
DEFAULT_REGEX
- See Also:
-
DEFAULT_EXCLUSION_REGEX
- See Also:
-
X_DATADOME_RESPONSE_HEADER
- See Also:
-
X_DATADOME_REQUEST_HEADERS
- See Also:
-
X_DATADOME_RESPONSE_HEADERS
- See Also:
-
-
Constructor Details
-
DataDomeService
public DataDomeService(String apiKey, String apiHost, boolean ssl, String proxyServer, int proxyPort, boolean proxySSL, int connectTimeout, int readTimeout, int maxTotalConnections) throws UnknownHostException - Throws:
UnknownHostException
-
DataDomeService
-
-
Method Details
-
truncateFromEndStringBaseOnUrlEncodedSize
-
truncateStringBaseOnUrlEncodedSize
-
urlEncodedCharSize
protected static int urlEncodedCharSize(char c) -
addParam
-
createHttpPost
protected org.apache.http.client.methods.HttpPost createHttpPost(DataDomeRequest request) throws IOException - Throws:
IOException
-
validateRequest
-
isConfirmedStatus
protected static boolean isConfirmedStatus(int statusCode, org.apache.http.Header header)
-