public class HttpTransportOverFCGI extends Object implements HttpTransport
| Constructor and Description |
|---|
HttpTransportOverFCGI(ByteBufferPool byteBufferPool,
Flusher flusher,
int request,
boolean sendStatus200) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(Throwable failure)
Aborts this transport.
|
protected Generator.Result |
generateResponseContent(ByteBuffer buffer,
boolean lastContent,
Callback callback) |
protected Generator.Result |
generateResponseHeaders(MetaData.Response info,
Callback callback) |
boolean |
isOptimizedForDirectBuffers()
Is the underlying transport optimized for DirectBuffer usage
|
boolean |
isPushSupported() |
void |
onCompleted() |
void |
push(MetaData.Request request) |
void |
send(MetaData.Response info,
boolean head,
ByteBuffer content,
boolean lastContent,
Callback callback) |
public HttpTransportOverFCGI(ByteBufferPool byteBufferPool, Flusher flusher, int request, boolean sendStatus200)
public boolean isOptimizedForDirectBuffers()
HttpTransportisOptimizedForDirectBuffers in interface HttpTransportpublic void send(MetaData.Response info, boolean head, ByteBuffer content, boolean lastContent, Callback callback)
send in interface HttpTransportpublic boolean isPushSupported()
isPushSupported in interface HttpTransportpublic void push(MetaData.Request request)
push in interface HttpTransportprotected Generator.Result generateResponseHeaders(MetaData.Response info, Callback callback)
protected Generator.Result generateResponseContent(ByteBuffer buffer, boolean lastContent, Callback callback)
public 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.public void onCompleted()
onCompleted in interface HttpTransportCopyright © 1995–2015 Mort Bay Consulting. All rights reserved.