public class NettyServerHttpExchange extends AbstractServerHttpExchange
ServerHttpExchange for Netty 4.closeActions, endActions, errorActions| Constructor and Description |
|---|
NettyServerHttpExchange(ChannelHandlerContext context,
HttpRequest request) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doEnd() |
protected void |
doRead(Action<ByteBuffer> chunkAction) |
protected void |
doSetHeader(String name,
String value) |
protected void |
doSetStatus(HttpStatus status) |
protected void |
doWrite(ByteBuffer byteBuffer) |
Set<String> |
headerNames()
The names of the request headers.
|
List<String> |
headers(String name)
Returns the request headers associated with the given name or empty list
if no header is found.
|
String |
method()
The name of the request method.
|
<T> T |
unwrap(Class<T> clazz)
Returns the provider-specific component.
|
String |
uri()
The request URI.
|
bodyAction, chunkAction, closeAction, end, end, end, end, endAction, errorAction, header, read, readAsBinary, readAsText, readAsText, setHeader, setHeader, setStatus, write, write, writepublic NettyServerHttpExchange(ChannelHandlerContext context, HttpRequest request)
public String uri()
ServerHttpExchangepublic String method()
ServerHttpExchangepublic Set<String> headerNames()
ServerHttpExchangeSet is case-sensitive.public List<String> headers(String name)
ServerHttpExchangeprotected void doRead(Action<ByteBuffer> chunkAction)
doRead in class AbstractServerHttpExchangeprotected void doSetStatus(HttpStatus status)
doSetStatus in class AbstractServerHttpExchangeprotected void doSetHeader(String name, String value)
doSetHeader in class AbstractServerHttpExchangeprotected void doWrite(ByteBuffer byteBuffer)
doWrite in class AbstractServerHttpExchangeprotected void doEnd()
doEnd in class AbstractServerHttpExchangeCopyright 2014, The Vibe Project