public class NettyResponse extends Object implements NativeResponse
| Constructor and Description |
|---|
NettyResponse(io.netty.channel.ChannelHandlerContext ctx,
int bufferSize,
boolean keepAlive) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
committed() |
void |
end() |
Optional<String> |
header(String name) |
void |
header(String name,
Iterable<String> values) |
void |
header(String name,
String value) |
List<String> |
headers(String name) |
void |
reset() |
void |
send(byte[] bytes) |
void |
send(ByteBuffer buffer) |
void |
send(FileChannel channel) |
void |
send(InputStream stream) |
int |
statusCode() |
void |
statusCode(int code) |
public NettyResponse(io.netty.channel.ChannelHandlerContext ctx,
int bufferSize,
boolean keepAlive)
public List<String> headers(String name)
headers in interface NativeResponsepublic Optional<String> header(String name)
header in interface NativeResponsepublic void header(String name, String value)
header in interface NativeResponsepublic void header(String name, Iterable<String> values)
header in interface NativeResponsepublic void send(byte[] bytes)
throws Exception
send in interface NativeResponseExceptionpublic void send(ByteBuffer buffer) throws Exception
send in interface NativeResponseExceptionpublic void send(InputStream stream) throws Exception
send in interface NativeResponseExceptionpublic void send(FileChannel channel) throws Exception
send in interface NativeResponseExceptionpublic int statusCode()
statusCode in interface NativeResponsepublic void statusCode(int code)
statusCode in interface NativeResponsepublic boolean committed()
committed in interface NativeResponsepublic void end()
end in interface NativeResponsepublic void reset()
reset in interface NativeResponseCopyright © 2015. All rights reserved.