public static class SpdyConnection.Builder extends Object
Constructor and Description |
---|
Builder(boolean client,
Socket socket) |
Builder(String hostName,
boolean client,
Socket socket) |
Modifier and Type | Method and Description |
---|---|
SpdyConnection |
build() |
SpdyConnection.Builder |
handler(IncomingStreamHandler handler) |
SpdyConnection.Builder |
protocol(Protocol protocol) |
SpdyConnection.Builder |
pushObserver(PushObserver pushObserver) |
public Builder(boolean client, Socket socket) throws IOException
IOException
public Builder(String hostName, boolean client, Socket socket) throws IOException
client
- true if this peer initiated the connection; false if this
peer accepted the connection.IOException
public SpdyConnection.Builder handler(IncomingStreamHandler handler)
public SpdyConnection.Builder protocol(Protocol protocol)
public SpdyConnection.Builder pushObserver(PushObserver pushObserver)
public SpdyConnection build() throws IOException
IOException
Copyright © 2015. All rights reserved.