org.keycloak.connections.httpclient

## Interface HttpClientProvider

- All Superinterfaces:
    Provider

      public interface HttpClientProvider
      extends Provider

  Author:
    Stian Thorgersen

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `InputStream` | `get(String uri)` Helper method
    `org.apache.http.client.HttpClient` | `getHttpClient()`
    `int` | `postText(String uri, String text)` Helper method

    - ### Methods inherited from interface org.keycloak.provider.Provider

      `close`

- - ### Method Detail

    - #### getHttpClient

          org.apache.http.client.HttpClient getHttpClient()

    - #### postText

          int postText(String uri,
                       String text)
                throws IOException

      Helper method
      Parameters:
        `uri` -
        `text` -
      Returns:
        http response status
      Throws:
        `IOException`

    - #### get

          InputStream get(String uri)
                   throws IOException

      Helper method
      Parameters:
        `uri` -
      Returns:
        response stream, you must close this stream or leaks will happen
      Throws:
        `IOException`

Copyright © 2020 JBoss by Red Hat. All rights reserved.