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) -
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) static SimpleHttp
static SimpleHttp
doDelete
(String url, KeycloakSession session) static SimpleHttp
static SimpleHttp
doGet
(String url, KeycloakSession session) static SimpleHttp
static SimpleHttp
static SimpleHttp
static SimpleHttp
doPost
(String url, KeycloakSession session) static SimpleHttp
entity
(org.apache.http.HttpEntity entity) getUrl()
socketTimeOutMillis
(int timeout)
-
Constructor Details
-
SimpleHttp
-
-
Method Details
-
doDelete
-
doDelete
-
doGet
-
doGet
-
doPost
-
doPost
-
doPut
-
doHead
-
doPatch
-
header
-
getHeader
-
json
-
entity
-
param
-
socketTimeOutMillis
-
connectTimeoutMillis
-
connectionRequestTimeoutMillis
-
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
-