public abstract class SpdyConnection extends Object
Modifier and Type | Field and Description |
---|---|
static int |
CLOSE |
protected boolean |
inClosed |
static int |
LONG |
protected SpdyContext |
spdyContext |
static int |
TYPE_GOAWAY |
static int |
TYPE_HEADERS |
static int |
TYPE_PING |
static int |
TYPE_RST_STREAM |
static int |
TYPE_SETTINGS |
static int |
TYPE_SYN_REPLY |
static int |
TYPE_SYN_STREAM |
static int |
TYPE_WINDOW |
static String[] |
TYPES |
Constructor and Description |
---|
SpdyConnection(SpdyContext spdyContext) |
Modifier and Type | Method and Description |
---|---|
void |
abort(String msg) |
void |
abort(String msg,
int last) |
abstract void |
close() |
void |
drain() |
void |
dump(PrintWriter out) |
SpdyStream |
get(String host,
String url) |
SpdyFrame |
getDataFrame() |
SpdyFrame |
getFrame(int type) |
SpdyContext |
getSpdyContext() |
protected int |
handleFrame()
Process a SPDY connection.
|
SpdyFrame |
inFrame() |
void |
nonBlockingSend(SpdyFrame oframe,
SpdyStream proc)
Send as much as possible without blocking.
|
int |
onBlockingSocket()
Process a SPDY connection using a blocking socket.
|
void |
onClose() |
int |
processInput()
Non-blocking method, read as much as possible and return.
|
abstract int |
read(byte[] data,
int off,
int len)
Like read, but may return 0 if no data is available and the channel
supports polling.
|
void |
send(SpdyFrame oframe,
SpdyStream proc)
Add the frame to the queue and send until the queue is empty.
|
void |
setCompressSupport(org.apache.tomcat.spdy.SpdyConnection.CompressSupport cs) |
String |
toString() |
abstract int |
write(byte[] data,
int off,
int len)
Write.
|
public static final int TYPE_SYN_STREAM
public static final int TYPE_SYN_REPLY
public static final int TYPE_RST_STREAM
public static final int TYPE_SETTINGS
public static final int TYPE_PING
public static final int TYPE_GOAWAY
public static final int TYPE_HEADERS
public static final int TYPE_WINDOW
public static String[] TYPES
protected final SpdyContext spdyContext
protected boolean inClosed
public static final int LONG
public static final int CLOSE
public SpdyConnection(SpdyContext spdyContext)
public void dump(PrintWriter out)
public abstract int write(byte[] data, int off, int len) throws IOException
IOException
public abstract int read(byte[] data, int off, int len) throws IOException
IOException
public abstract void close() throws IOException
IOException
public void setCompressSupport(org.apache.tomcat.spdy.SpdyConnection.CompressSupport cs)
public SpdyFrame getFrame(int type)
public SpdyFrame getDataFrame()
public void drain()
public void nonBlockingSend(SpdyFrame oframe, SpdyStream proc)
public void send(SpdyFrame oframe, SpdyStream proc)
public void onClose()
public SpdyFrame inFrame()
public int onBlockingSocket()
public int processInput() throws IOException
IOException
public void abort(String msg)
public void abort(String msg, int last)
protected int handleFrame() throws IOException
IOException
public SpdyContext getSpdyContext()
public SpdyStream get(String host, String url)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.