-
- All Implemented Interfaces:
-
java.io.Closeable
,java.lang.AutoCloseable
public interface NotionHttpClient implements AutoCloseable, Closeable
-
-
Method Summary
Modifier and Type Method Description abstract NotionHttpResponse
get(NotionLogger logger, String url, Map<String, String> query, Map<String, String> headers)
abstract NotionHttpResponse
postTextBody(NotionLogger logger, String url, Map<String, String> query, String body, Map<String, String> headers)
abstract NotionHttpResponse
patchTextBody(NotionLogger logger, String url, Map<String, String> query, String body, Map<String, String> headers)
Unit
close()
String
urlEncode(String value)
<ERROR CLASS>
buildQueryString(Map<String, String> query)
String
buildFullUrl(String url, String q)
Unit
debugLogStart(NotionLogger logger, String method, String fullUrl, String body)
Unit
debugLogSuccess(NotionLogger logger, Long startTimeMillis, NotionHttpResponse response)
Unit
warnLogFailure(NotionLogger logger, Exception e)
-
-
Method Detail
-
get
abstract NotionHttpResponse get(NotionLogger logger, String url, Map<String, String> query, Map<String, String> headers)
-
postTextBody
abstract NotionHttpResponse postTextBody(NotionLogger logger, String url, Map<String, String> query, String body, Map<String, String> headers)
-
patchTextBody
abstract NotionHttpResponse patchTextBody(NotionLogger logger, String url, Map<String, String> query, String body, Map<String, String> headers)
-
buildQueryString
<ERROR CLASS> buildQueryString(Map<String, String> query)
-
buildFullUrl
String buildFullUrl(String url, String q)
-
debugLogStart
Unit debugLogStart(NotionLogger logger, String method, String fullUrl, String body)
-
debugLogSuccess
Unit debugLogSuccess(NotionLogger logger, Long startTimeMillis, NotionHttpResponse response)
-
warnLogFailure
Unit warnLogFailure(NotionLogger logger, Exception e)
-
-
-
-