Class FramedConnection.Builder
- java.lang.Object
-
- com.squareup.okhttp.internal.framed.FramedConnection.Builder
-
- Enclosing class:
- FramedConnection
public static class FramedConnection.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FramedConnectionbuild()FramedConnection.Builderhandler(IncomingStreamHandler handler)FramedConnection.Builderprotocol(Protocol protocol)FramedConnection.BuilderpushObserver(PushObserver pushObserver)
-
-
-
Constructor Detail
-
Builder
public Builder(boolean client, Socket socket) throws IOException- Throws:
IOException
-
Builder
public Builder(String hostName, boolean client, Socket socket) throws IOException
- Parameters:
client- true if this peer initiated the connection; false if this peer accepted the connection.- Throws:
IOException
-
-
Method Detail
-
handler
public FramedConnection.Builder handler(IncomingStreamHandler handler)
-
protocol
public FramedConnection.Builder protocol(Protocol protocol)
-
pushObserver
public FramedConnection.Builder pushObserver(PushObserver pushObserver)
-
build
public FramedConnection build() throws IOException
- Throws:
IOException
-
-