| Modifier and Type | Class and Description |
|---|---|
class |
AbstractServerHttpExchange
Abstract base class for
ServerHttpExchange. |
| Modifier and Type | Method and Description |
|---|---|
ServerHttpExchange |
AbstractServerHttpExchange.bodyAction(Action action) |
ServerHttpExchange |
ServerHttpExchange.bodyAction(Action<?> action)
Attaches an action to be called with the whole request body.
|
ServerHttpExchange |
AbstractServerHttpExchange.chunkAction(Action action) |
ServerHttpExchange |
ServerHttpExchange.chunkAction(Action<?> action)
Attaches an action to be called with a chunk from the request body.
|
ServerHttpExchange |
ServerHttpExchange.closeAction(Action<Void> action)
Attaches an action to be called when both request and response end
successfully or the underlying connection is aborted for some reason like
an error.
|
ServerHttpExchange |
AbstractServerHttpExchange.closeAction(Action<Void> action) |
ServerHttpExchange |
ServerHttpExchange.end()
Completes the response.
|
ServerHttpExchange |
AbstractServerHttpExchange.end() |
ServerHttpExchange |
ServerHttpExchange.end(ByteBuffer byteBuffer)
Writes a binary chunk to the response body and completes the response
through
end(). |
ServerHttpExchange |
AbstractServerHttpExchange.end(ByteBuffer data) |
ServerHttpExchange |
ServerHttpExchange.end(String data)
Writes a text chunk to the response body using the charset from the
response header,
content-type and completes the response through
end(). |
ServerHttpExchange |
AbstractServerHttpExchange.end(String data) |
ServerHttpExchange |
ServerHttpExchange.end(String data,
String charsetName)
Writes a text chunk to the response body using the given charset and
completes the response through
end(). |
ServerHttpExchange |
AbstractServerHttpExchange.end(String data,
String charsetName) |
ServerHttpExchange |
ServerHttpExchange.endAction(Action<Void> action)
Attaches an action to be called when the request is fully read.
|
ServerHttpExchange |
AbstractServerHttpExchange.endAction(Action<Void> action) |
ServerHttpExchange |
ServerHttpExchange.errorAction(Action<Throwable> action)
Attaches an action to be called when this exchange gets an error.
|
ServerHttpExchange |
AbstractServerHttpExchange.errorAction(Action<Throwable> action) |
ServerHttpExchange |
ServerHttpExchange.read()
Reads the request body.
|
ServerHttpExchange |
AbstractServerHttpExchange.read() |
ServerHttpExchange |
ServerHttpExchange.readAsBinary()
Reads the request body as binary.
|
ServerHttpExchange |
AbstractServerHttpExchange.readAsBinary() |
ServerHttpExchange |
ServerHttpExchange.readAsText()
Reads the request body as text.
|
ServerHttpExchange |
AbstractServerHttpExchange.readAsText() |
ServerHttpExchange |
ServerHttpExchange.readAsText(String charsetName)
Reads the request body as text using the given charset.
|
ServerHttpExchange |
AbstractServerHttpExchange.readAsText(String charsetName) |
ServerHttpExchange |
ServerHttpExchange.setHeader(String name,
Iterable<String> value)
Sets response headers.
|
ServerHttpExchange |
AbstractServerHttpExchange.setHeader(String name,
Iterable<String> value) |
ServerHttpExchange |
ServerHttpExchange.setHeader(String name,
String value)
Sets a response header.
|
ServerHttpExchange |
AbstractServerHttpExchange.setHeader(String name,
String value) |
ServerHttpExchange |
ServerHttpExchange.setStatus(HttpStatus status)
Sets the HTTP status for the response.
|
ServerHttpExchange |
AbstractServerHttpExchange.setStatus(HttpStatus status) |
ServerHttpExchange |
ServerHttpExchange.write(ByteBuffer byteBuffer)
Writes a binary chunk to the response body.
|
ServerHttpExchange |
AbstractServerHttpExchange.write(ByteBuffer byteBuffer) |
ServerHttpExchange |
ServerHttpExchange.write(String data)
Writes a text chunk to the response body using the charset from the
response header,
content-type. |
ServerHttpExchange |
AbstractServerHttpExchange.write(String data) |
ServerHttpExchange |
ServerHttpExchange.write(String data,
String charsetName)
Writes a text chunk to the response body using the given charset.
|
ServerHttpExchange |
AbstractServerHttpExchange.write(String data,
String charsetName) |
Copyright 2014, The Vibe Project