public class HttpProtocolSender extends Object implements com.squareup.okhttp.Callback, Closeable
| Constructor and Description |
|---|
HttpProtocolSender(UPID sender) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
onFailure(com.squareup.okhttp.Request request,
IOException e) |
void |
onResponse(com.squareup.okhttp.Response response) |
void |
sendHttpMessage(UPID recipient,
com.google.protobuf.Message message) |
public HttpProtocolSender(UPID sender)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void sendHttpMessage(UPID recipient, com.google.protobuf.Message message) throws IOException
IOExceptionpublic void onFailure(com.squareup.okhttp.Request request,
IOException e)
onFailure in interface com.squareup.okhttp.Callbackpublic void onResponse(com.squareup.okhttp.Response response)
throws IOException
onResponse in interface com.squareup.okhttp.CallbackIOExceptionCopyright © 2014–2015. All rights reserved.