Class SimpleHttp

java.lang.Object
org.keycloak.broker.provider.util.SimpleHttp

@Deprecated public class SimpleHttp extends Object
Deprecated.
An updated version of SimpleHttp is available in SimpleHttp. This version will be deleted in Keycloak 27.0
Author:
Stian Thorgersen, Vlastimil Elias (velias at redhat dot com), David Klassen (daviddd.kl@gmail.com)
  • Constructor Details

    • SimpleHttp

      protected SimpleHttp(String url, String method, org.apache.http.client.HttpClient client, long maxConsumedResponseSize)
      Deprecated.
  • Method Details

    • doDelete

      public static SimpleHttp doDelete(String url, org.keycloak.models.KeycloakSession session)
      Deprecated.
    • doDelete

      protected static SimpleHttp doDelete(String url, org.apache.http.client.HttpClient client, long maxConsumedResponseSize)
      Deprecated.
    • doGet

      public static SimpleHttp doGet(String url, org.keycloak.models.KeycloakSession session)
      Deprecated.
    • doGet

      protected static SimpleHttp doGet(String url, org.apache.http.client.HttpClient client, long maxConsumedResponseSize)
      Deprecated.
    • doPost

      public static SimpleHttp doPost(String url, org.keycloak.models.KeycloakSession session)
      Deprecated.
    • doPost

      protected static SimpleHttp doPost(String url, org.apache.http.client.HttpClient client, long maxConsumedResponseSize)
      Deprecated.
    • doPut

      public static SimpleHttp doPut(String url, org.keycloak.models.KeycloakSession session)
      Deprecated.
    • doPut

      protected static SimpleHttp doPut(String url, org.apache.http.client.HttpClient client, long maxConsumedResponseSize)
      Deprecated.
    • doHead

      public static SimpleHttp doHead(String url, org.keycloak.models.KeycloakSession session)
      Deprecated.
    • doHead

      protected static SimpleHttp doHead(String url, org.apache.http.client.HttpClient client, long maxConsumedResponseSize)
      Deprecated.
    • doPatch

      public static SimpleHttp doPatch(String url, org.keycloak.models.KeycloakSession session)
      Deprecated.
    • doPatch

      protected static SimpleHttp doPatch(String url, org.apache.http.client.HttpClient client, long maxConsumedResponseSize)
      Deprecated.
    • header

      public SimpleHttp header(String name, String value)
      Deprecated.
    • getHeader

      public String getHeader(String name)
      Deprecated.
    • getHeaders

      public Map<String,String> getHeaders()
      Deprecated.
    • getParam

      public String getParam(String name)
      Deprecated.
    • getParams

      public Map<String,String> getParams()
      Deprecated.
    • getEntity

      public Object getEntity()
      Deprecated.
    • json

      public SimpleHttp json(Object entity)
      Deprecated.
    • entity

      public SimpleHttp entity(org.apache.http.HttpEntity entity)
      Deprecated.
    • params

      public SimpleHttp params(Map<String,String> params)
      Deprecated.
    • param

      public SimpleHttp param(String name, String value)
      Deprecated.
    • socketTimeOutMillis

      public SimpleHttp socketTimeOutMillis(int timeout)
      Deprecated.
    • connectTimeoutMillis

      public SimpleHttp connectTimeoutMillis(int timeout)
      Deprecated.
    • connectionRequestTimeoutMillis

      public SimpleHttp connectionRequestTimeoutMillis(int timeout)
      Deprecated.
    • setMaxConsumedResponseSize

      public SimpleHttp setMaxConsumedResponseSize(long maxConsumedResponseSize)
      Deprecated.
    • auth

      public SimpleHttp auth(String token)
      Deprecated.
    • authBasic

      public SimpleHttp authBasic(String username, String password)
      Deprecated.
    • acceptJson

      public SimpleHttp acceptJson()
      Deprecated.
    • asJson

      public com.fasterxml.jackson.databind.JsonNode asJson() throws IOException
      Deprecated.
      Throws:
      IOException
    • asJson

      public <T> T asJson(Class<T> type) throws IOException
      Deprecated.
      Throws:
      IOException
    • asJson

      public <T> T asJson(com.fasterxml.jackson.core.type.TypeReference<T> type) throws IOException
      Deprecated.
      Throws:
      IOException
    • asString

      public String asString() throws IOException
      Deprecated.
      Throws:
      IOException
    • asStatus

      public int asStatus() throws IOException
      Deprecated.
      Throws:
      IOException
    • asResponse

      public SimpleHttp.Response asResponse() throws IOException
      Deprecated.
      Throws:
      IOException
    • getUrl

      public String getUrl()
      Deprecated.
      Returns:
      the URL without params