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()
HttpTransportisOptimizedForDirectBuffers in interface HttpTransportpublic 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 HttpTransportpublic boolean isPushSupported()
isPushSupported in interface HttpTransportpublic void push(MetaData.Request request)
push in interface HttpTransportpublic void onCompleted()
onCompleted in interface HttpTransportpublic void abort(Throwable failure)
HttpTransportThis 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 HttpTransportfailure - the failure that caused the abort.Copyright © 1995–2015 Mort Bay Consulting. All rights reserved.