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) |
| 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(okio.BufferedSource bufferedSource,
com.squareup.okhttp.ws.WebSocket.PayloadType payloadType) |
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)
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(okio.BufferedSource bufferedSource,
com.squareup.okhttp.ws.WebSocket.PayloadType payloadType)
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 Red Hat. All rights reserved.