Interface HttpEncoder<C,R>
-
- All Known Implementing Classes:
TextCodec
public interface HttpEncoder<C,R>Write a Java object as HTTP response body.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description voidencode(io.undertow.server.HttpServerExchange exchange, C ctx, R value)static byte[]receiveFullBytes(io.undertow.server.HttpServerExchange exchange, java.nio.charset.Charset charset)static java.lang.StringreceiveFullString(io.undertow.server.HttpServerExchange exchange, java.nio.charset.Charset charset)
-
-
-
Method Detail
-
receiveFullString
static java.lang.String receiveFullString(io.undertow.server.HttpServerExchange exchange, java.nio.charset.Charset charset) throws HttpStatusException- Throws:
HttpStatusException
-
receiveFullBytes
static byte[] receiveFullBytes(io.undertow.server.HttpServerExchange exchange, java.nio.charset.Charset charset) throws HttpStatusException- Throws:
HttpStatusException
-
-