public class ExecWebSocketListener extends Object implements ExecWatch, com.squareup.okhttp.ws.WebSocketListener, AutoCloseable
| Constructor and Description |
|---|
ExecWebSocketListener(InputStream in,
OutputStream out,
OutputStream err,
PipedOutputStream inputPipe,
PipedInputStream outputPipe,
PipedInputStream errorPipe,
ExecListener listener) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the Watch.
|
InputStream |
getError() |
OutputStream |
getInput() |
InputStream |
getOutput() |
void |
onClose(int i,
String s) |
void |
onFailure(IOException ioe,
com.squareup.okhttp.Response response) |
void |
onMessage(com.squareup.okhttp.ResponseBody message) |
void |
onOpen(com.squareup.okhttp.ws.WebSocket webSocket,
com.squareup.okhttp.Response response) |
void |
onPong(okio.Buffer buffer) |
void |
waitUntilReady() |
public ExecWebSocketListener(InputStream in, OutputStream out, OutputStream err, PipedOutputStream inputPipe, PipedInputStream outputPipe, PipedInputStream errorPipe, ExecListener listener)
public void close()
ExecWatchpublic void waitUntilReady()
public void onOpen(com.squareup.okhttp.ws.WebSocket webSocket,
com.squareup.okhttp.Response response)
onOpen in interface com.squareup.okhttp.ws.WebSocketListenerpublic void onFailure(IOException ioe, com.squareup.okhttp.Response response)
onFailure in interface com.squareup.okhttp.ws.WebSocketListenerpublic void onMessage(com.squareup.okhttp.ResponseBody message)
throws IOException
onMessage in interface com.squareup.okhttp.ws.WebSocketListenerIOExceptionpublic void onPong(okio.Buffer buffer)
onPong in interface com.squareup.okhttp.ws.WebSocketListenerpublic void onClose(int i,
String s)
onClose in interface com.squareup.okhttp.ws.WebSocketListenerpublic OutputStream getInput()
public InputStream getOutput()
public InputStream getError()
Copyright © 2015–2016 Red Hat. All rights reserved.