public class AtmosphereServerHttpExchange extends AbstractServerHttpExchange
ServerHttpExchange for Atmosphere 2.closeActions, endActions, errorActions| Constructor and Description |
|---|
AtmosphereServerHttpExchange(AtmosphereResource resource) |
| 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)
AtmosphereResource is 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 AtmosphereServerHttpExchange(AtmosphereResource resource)
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)
AtmosphereResource is available.Copyright 2014, The Vibe Project