public class WebSockets extends Object
Modifier and Type | Class and Description |
---|---|
static class |
WebSockets.Listener |
static interface |
WebSockets.SocketListener
A simple interface for a listener on a web socket
|
Modifier and Type | Field and Description |
---|---|
static String |
CONNECTION |
static String |
SPDY_3_1 |
static String |
STREAM_PROTOCOL_HEADER |
static String |
UPGRADE |
static String |
V4_STREAM_PROTOCOL |
Constructor and Description |
---|
WebSockets() |
Modifier and Type | Method and Description |
---|---|
static void |
stream(okhttp3.Call call,
io.kubernetes.client.openapi.ApiClient client,
WebSockets.SocketListener listener) |
static void |
stream(String path,
String method,
io.kubernetes.client.openapi.ApiClient client,
WebSockets.SocketListener listener)
Create a new WebSocket stream
|
static void |
stream(String path,
String method,
List<io.kubernetes.client.openapi.Pair> queryParams,
io.kubernetes.client.openapi.ApiClient client,
WebSockets.SocketListener listener) |
public static final String V4_STREAM_PROTOCOL
public static final String STREAM_PROTOCOL_HEADER
public static final String SPDY_3_1
public static final String CONNECTION
public static final String UPGRADE
public static void stream(String path, String method, io.kubernetes.client.openapi.ApiClient client, WebSockets.SocketListener listener) throws io.kubernetes.client.openapi.ApiException, IOException
path
- The HTTP Path to request from the APImethod
- The HTTP method to use for the callclient
- The ApiClient for communicating with the APIlistener
- The socket listener to handle socket eventsio.kubernetes.client.openapi.ApiException
IOException
public static void stream(String path, String method, List<io.kubernetes.client.openapi.Pair> queryParams, io.kubernetes.client.openapi.ApiClient client, WebSockets.SocketListener listener) throws io.kubernetes.client.openapi.ApiException, IOException
io.kubernetes.client.openapi.ApiException
IOException
public static void stream(okhttp3.Call call, io.kubernetes.client.openapi.ApiClient client, WebSockets.SocketListener listener)
Copyright © 2021. All rights reserved.