Class SimpleHttp
java.lang.Object
org.keycloak.broker.provider.util.SimpleHttp
- Author:
- Stian Thorgersen, Vlastimil Elias (velias at redhat dot com), David Klassen (daviddd.kl@gmail.com)
-
Nested Class Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
SimpleHttp
(String url, String method, org.apache.http.client.HttpClient client, long maxConsumedResponseSize) -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
asJson()
<T> T
asJson
(com.fasterxml.jackson.core.type.TypeReference<T> type) <T> T
int
asStatus()
asString()
connectionRequestTimeoutMillis
(int timeout) connectTimeoutMillis
(int timeout) protected static SimpleHttp
static SimpleHttp
doDelete
(String url, KeycloakSession session) protected static SimpleHttp
static SimpleHttp
doGet
(String url, KeycloakSession session) protected static SimpleHttp
static SimpleHttp
doHead
(String url, KeycloakSession session) protected static SimpleHttp
static SimpleHttp
doPatch
(String url, KeycloakSession session) protected static SimpleHttp
static SimpleHttp
doPost
(String url, KeycloakSession session) protected static SimpleHttp
static SimpleHttp
doPut
(String url, KeycloakSession session) entity
(org.apache.http.HttpEntity entity) getUrl()
setMaxConsumedResponseSize
(long maxConsumedResponseSize) socketTimeOutMillis
(int timeout)
-
Constructor Details
-
SimpleHttp
-
-
Method Details
-
doDelete
-
doDelete
protected static SimpleHttp doDelete(String url, org.apache.http.client.HttpClient client, long maxConsumedResponseSize) -
doGet
-
doGet
protected static SimpleHttp doGet(String url, org.apache.http.client.HttpClient client, long maxConsumedResponseSize) -
doPost
-
doPost
protected static SimpleHttp doPost(String url, org.apache.http.client.HttpClient client, long maxConsumedResponseSize) -
doPut
-
doPut
protected static SimpleHttp doPut(String url, org.apache.http.client.HttpClient client, long maxConsumedResponseSize) -
doHead
-
doHead
protected static SimpleHttp doHead(String url, org.apache.http.client.HttpClient client, long maxConsumedResponseSize) -
doPatch
-
doPatch
protected static SimpleHttp doPatch(String url, org.apache.http.client.HttpClient client, long maxConsumedResponseSize) -
header
-
getHeader
-
json
-
entity
-
param
-
socketTimeOutMillis
-
connectTimeoutMillis
-
connectionRequestTimeoutMillis
-
setMaxConsumedResponseSize
-
auth
-
authBasic
-
acceptJson
-
asJson
- Throws:
IOException
-
asJson
- Throws:
IOException
-
asJson
- Throws:
IOException
-
asString
- Throws:
IOException
-
asStatus
- Throws:
IOException
-
asResponse
- Throws:
IOException
-
getUrl
- Returns:
- the URL without params
-