public static class Http2Connection.Builder extends Object
| Constructor and Description |
|---|
Builder(boolean client) |
| Modifier and Type | Method and Description |
|---|---|
Http2Connection |
build() |
Http2Connection.Builder |
listener(Http2Connection.Listener listener) |
Http2Connection.Builder |
pushObserver(PushObserver pushObserver) |
Http2Connection.Builder |
socket(Socket socket) |
Http2Connection.Builder |
socket(Socket socket,
String hostname,
okio.BufferedSource source,
okio.BufferedSink sink) |
public Builder(boolean client)
client - true if this peer initiated the connection; false if this peer accepted the
connection.public Http2Connection.Builder socket(Socket socket) throws IOException
IOExceptionpublic Http2Connection.Builder socket(Socket socket, String hostname, okio.BufferedSource source, okio.BufferedSink sink)
public Http2Connection.Builder listener(Http2Connection.Listener listener)
public Http2Connection.Builder pushObserver(PushObserver pushObserver)
public Http2Connection build() throws IOException
IOExceptionCopyright © 2017. All Rights Reserved.