public class ServerGenerator extends Generator
Generator.Result
byteBufferPool, MAX_CONTENT_LENGTH
Constructor and Description |
---|
ServerGenerator(ByteBufferPool byteBufferPool) |
ServerGenerator(ByteBufferPool byteBufferPool,
boolean sendStatus200) |
Modifier and Type | Method and Description |
---|---|
Generator.Result |
generateResponseContent(int request,
ByteBuffer content,
boolean lastContent,
boolean aborted,
Callback callback) |
Generator.Result |
generateResponseHeaders(int request,
int code,
String reason,
HttpFields fields,
Callback callback) |
generateContent
public ServerGenerator(ByteBufferPool byteBufferPool)
public ServerGenerator(ByteBufferPool byteBufferPool, boolean sendStatus200)
public Generator.Result generateResponseHeaders(int request, int code, String reason, HttpFields fields, Callback callback)
public Generator.Result generateResponseContent(int request, ByteBuffer content, boolean lastContent, boolean aborted, Callback callback)
Copyright © 1995-2015 Webtide. All Rights Reserved.