public class ServletServerHttpExchange extends AbstractServerHttpExchange
ServerHttpExchange for Servlet 3.closeActions, endActions, errorActions| Constructor and Description |
|---|
ServletServerHttpExchange(HttpServletRequest request,
HttpServletResponse response) |
| 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)
HttpServletRequest and HttpServletResponse are available. |
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 ServletServerHttpExchange(HttpServletRequest request, HttpServletResponse response)
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 AbstractServerHttpExchangepublic <T> T unwrap(Class<T> clazz)
HttpServletRequest and HttpServletResponse are available.Copyright 2014, The Vibe Project