public class ExecWebSocketListener extends okhttp3.WebSocketListener implements ExecWatch, AutoCloseable
| Constructor and Description |
|---|
ExecWebSocketListener(Config config,
InputStream in,
OutputStream out,
OutputStream err,
PipedOutputStream inputPipe,
PipedInputStream outputPipe,
PipedInputStream errorPipe,
ExecListener listener) |
ExecWebSocketListener(InputStream in,
OutputStream out,
OutputStream err,
PipedOutputStream inputPipe,
PipedInputStream outputPipe,
PipedInputStream errorPipe,
ExecListener listener)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the Watch.
|
void |
close(int code,
String reason) |
InputStream |
getError() |
OutputStream |
getInput() |
InputStream |
getOutput() |
void |
onClosed(okhttp3.WebSocket webSocket,
int code,
String reason) |
void |
onClosing(okhttp3.WebSocket webSocket,
int code,
String reason) |
void |
onFailure(okhttp3.WebSocket webSocket,
Throwable t,
okhttp3.Response response) |
void |
onMessage(okhttp3.WebSocket webSocket,
okio.ByteString bytes) |
void |
onOpen(okhttp3.WebSocket webSocket,
okhttp3.Response response) |
void |
waitUntilReady() |
@Deprecated public ExecWebSocketListener(InputStream in, OutputStream out, OutputStream err, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, ExecListener listener)
public ExecWebSocketListener(Config config, InputStream in, OutputStream out, OutputStream err, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, ExecListener listener)
public void close()
ExecWatchpublic void close(int code,
String reason)
public void waitUntilReady()
public void onOpen(okhttp3.WebSocket webSocket,
okhttp3.Response response)
onOpen in class okhttp3.WebSocketListenerpublic void onFailure(okhttp3.WebSocket webSocket,
Throwable t,
okhttp3.Response response)
onFailure in class okhttp3.WebSocketListenerpublic void onMessage(okhttp3.WebSocket webSocket,
okio.ByteString bytes)
onMessage in class okhttp3.WebSocketListenerpublic void onClosing(okhttp3.WebSocket webSocket,
int code,
String reason)
onClosing in class okhttp3.WebSocketListenerpublic void onClosed(okhttp3.WebSocket webSocket,
int code,
String reason)
onClosed in class okhttp3.WebSocketListenerpublic OutputStream getInput()
public InputStream getOutput()
public InputStream getError()
Copyright © 2015–2017 Red Hat. All rights reserved.