public interface HttpResponseAdapter extends HttpMessageAdapter
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the request prematurely -- this is not required unless there is a problem on the
response side.
|
void |
fatalError(String message,
String stack)
A fatal error occurred while processing the associated request.
|
int |
getStatusCode() |
void |
send(boolean lastChunk,
IOCompletionHandler<Integer> cb)
Send the headers, and optionally the data if the data was already
set on this object.
|
void |
sendChunk(ByteBuffer data,
boolean lastChunk,
IOCompletionHandler<Integer> cb)
Send just a chunk of data.
|
void |
setStatusCode(int code) |
void |
setTrailer(String name,
String value)
Add a trailer -- only valid on a chunked message and sent on the last chunk.
|
addHeader, containsHeader, getClientAttachment, getData, getHeader, getHeaders, getHeaders, getLocalAddress, getLocalPort, getMajorVersion, getMinorVersion, getRemoteAddress, getRemotePort, getScriptObject, hasData, isLocalIPv6, isSelfContained, removeHeader, setClientAttachment, setData, setHeader, setScriptObject, setVersionint getStatusCode()
void setStatusCode(int code)
void send(boolean lastChunk,
IOCompletionHandler<Integer> cb)
void sendChunk(ByteBuffer data, boolean lastChunk, IOCompletionHandler<Integer> cb)
void fatalError(String message, String stack)
message - the error message generated by the scriptstack - if available, the JavaScript stack trace, otherwise nullvoid setTrailer(String name, String value)
void destroy()
Copyright © 2016 Apigee Corporation. All Rights Reserved.