public class HttpTransportOverHTTP2 extends Object implements HttpTransport
Constructor and Description |
---|
HttpTransportOverHTTP2(Connector connector,
HTTP2ServerConnection connection) |
Modifier and Type | Method and Description |
---|---|
void |
abort(Throwable failure)
Aborts this transport.
|
IStream |
getStream() |
boolean |
isOptimizedForDirectBuffers()
Is the underlying transport optimized for DirectBuffer usage
|
boolean |
isPushSupported() |
void |
onCompleted() |
void |
push(MetaData.Request request) |
void |
recycle() |
void |
send(MetaData.Response info,
boolean isHeadRequest,
ByteBuffer content,
boolean lastContent,
Callback callback) |
void |
setStream(IStream stream) |
public HttpTransportOverHTTP2(Connector connector, HTTP2ServerConnection connection)
public boolean isOptimizedForDirectBuffers()
HttpTransport
isOptimizedForDirectBuffers
in interface HttpTransport
public IStream getStream()
public void setStream(IStream stream)
public void recycle()
public void send(MetaData.Response info, boolean isHeadRequest, ByteBuffer content, boolean lastContent, Callback callback)
send
in interface HttpTransport
public boolean isPushSupported()
isPushSupported
in interface HttpTransport
public void push(MetaData.Request request)
push
in interface HttpTransport
public void onCompleted()
onCompleted
in interface HttpTransport
public void abort(Throwable failure)
HttpTransport
This method should terminate the transport in a way that can indicate an abnormal response to the client, for example by abruptly close the connection.
This method is called when an error response needs to be sent, but the response is already committed, or when a write failure is detected.
abort
in interface HttpTransport
failure
- the failure that caused the abort.Copyright © 1995-2015 Webtide. All Rights Reserved.