public class NetSupportSocket extends SpdyContext.NetSupport
ctx| Constructor and Description |
|---|
NetSupportSocket() |
| Modifier and Type | Method and Description |
|---|---|
SpdyConnection |
getConnection(String host,
int port) |
protected Socket |
getSocket(String host,
int port) |
boolean |
isSpdy(Object socketW) |
void |
listen(int port,
String cert,
String key) |
void |
onAccept(Object socket) |
void |
stop() |
setSpdyContextpublic boolean isSpdy(Object socketW)
isSpdy in class SpdyContext.NetSupportpublic SpdyConnection getConnection(String host, int port) throws IOException
getConnection in class SpdyContext.NetSupportIOExceptionprotected Socket getSocket(String host, int port) throws IOException
IOExceptionpublic void stop()
throws IOException
stop in class SpdyContext.NetSupportIOExceptionpublic void onAccept(Object socket)
onAccept in class SpdyContext.NetSupportpublic void listen(int port,
String cert,
String key)
throws IOException
listen in class SpdyContext.NetSupportIOExceptionCopyright © 2000-2015 Apache Software Foundation. All Rights Reserved.