public class BaseHttpClientGenerator extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseHttpClientGenerator.Configuration |
| Constructor and Description |
|---|
BaseHttpClientGenerator(BaseHttpClientGenerator.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildBase64Credentials()
For client requests that need to send a Basic authorization header, this builds the
base-64 encoding of the username and password that is needed for that header.
|
com.squareup.okhttp.ws.WebSocketCall |
createWebSocketCall(String url,
Map<String,String> headers)
Creates a websocket that connects to the given URL.
|
BaseHttpClientGenerator.Configuration |
getConfiguration() |
com.squareup.okhttp.OkHttpClient |
getHttpClient() |
public BaseHttpClientGenerator(BaseHttpClientGenerator.Configuration configuration)
public com.squareup.okhttp.OkHttpClient getHttpClient()
public com.squareup.okhttp.ws.WebSocketCall createWebSocketCall(String url, Map<String,String> headers)
url - where the websocket server isheaders - headers to pass in the connect requestpublic BaseHttpClientGenerator.Configuration getConfiguration()
public String buildBase64Credentials()
Copyright © 2015–2016 Red Hat, Inc.. All rights reserved.