public class PlayServerHttpExchange extends AbstractServerHttpExchange
ServerHttpExchange for Play 2.closeActions, endActions, errorActions| Constructor and Description |
|---|
PlayServerHttpExchange(Http.Request request,
Http.Response 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() |
List<String> |
headers(String name) |
String |
method() |
F.Promise<Result> |
result() |
<T> T |
unwrap(Class<T> clazz)
Http.Request and Http.Response are available. |
String |
uri() |
bodyAction, chunkAction, closeAction, end, end, end, end, endAction, errorAction, header, read, readAsBinary, readAsText, readAsText, setHeader, setHeader, setStatus, write, write, writepublic PlayServerHttpExchange(Http.Request request, Http.Response response)
public String uri()
public String method()
protected 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)
Http.Request and Http.Response are available.Copyright 2014, The Vibe Project