public class UndertowResponse
extends java.lang.Object
implements net.javapla.jawn.core.http.Response
| Constructor and Description |
|---|
UndertowResponse(io.undertow.server.HttpServerExchange exchange) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(net.javapla.jawn.core.http.Cookie cookie) |
java.util.Optional<java.nio.charset.Charset> |
characterEncoding() |
void |
characterEncoding(java.lang.String encoding) |
boolean |
committed() |
java.lang.String |
contentType() |
void |
contentType(java.lang.String contentType) |
void |
end() |
java.util.Optional<java.lang.String> |
header(java.lang.String name) |
void |
header(java.lang.String name,
java.util.List<java.lang.String> values) |
void |
header(java.lang.String name,
java.lang.String value) |
java.util.List<java.lang.String> |
headers(java.lang.String name) |
java.io.OutputStream |
outputStream() |
void |
reset() |
void |
send(byte[] bytes) |
void |
send(java.nio.ByteBuffer buffer) |
void |
send(java.nio.channels.FileChannel channel) |
void |
send(java.io.InputStream stream) |
int |
statusCode() |
void |
statusCode(int code) |
boolean |
usingWriter() |
java.io.Writer |
writer() |
public UndertowResponse(io.undertow.server.HttpServerExchange exchange)
public java.util.Optional<java.lang.String> header(java.lang.String name)
header in interface net.javapla.jawn.core.http.Responsepublic java.util.List<java.lang.String> headers(java.lang.String name)
headers in interface net.javapla.jawn.core.http.Responsepublic void header(java.lang.String name,
java.util.List<java.lang.String> values)
header in interface net.javapla.jawn.core.http.Responsepublic void header(java.lang.String name,
java.lang.String value)
header in interface net.javapla.jawn.core.http.Responsepublic void send(byte[] bytes)
throws java.lang.Exception
send in interface net.javapla.jawn.core.http.Responsejava.lang.Exceptionpublic void send(java.nio.ByteBuffer buffer)
throws java.lang.Exception
send in interface net.javapla.jawn.core.http.Responsejava.lang.Exceptionpublic void send(java.io.InputStream stream)
throws java.lang.Exception
send in interface net.javapla.jawn.core.http.Responsejava.lang.Exceptionpublic void send(java.nio.channels.FileChannel channel)
throws java.lang.Exception
send in interface net.javapla.jawn.core.http.Responsejava.lang.Exceptionpublic int statusCode()
statusCode in interface net.javapla.jawn.core.http.Responsepublic void statusCode(int code)
statusCode in interface net.javapla.jawn.core.http.Responsepublic java.lang.String contentType()
contentType in interface net.javapla.jawn.core.http.Responsepublic void contentType(java.lang.String contentType)
contentType in interface net.javapla.jawn.core.http.Responsepublic void addCookie(net.javapla.jawn.core.http.Cookie cookie)
addCookie in interface net.javapla.jawn.core.http.Responsepublic void characterEncoding(java.lang.String encoding)
characterEncoding in interface net.javapla.jawn.core.http.Responsepublic java.util.Optional<java.nio.charset.Charset> characterEncoding()
characterEncoding in interface net.javapla.jawn.core.http.Responsepublic java.io.Writer writer()
writer in interface net.javapla.jawn.core.http.Responsepublic java.io.OutputStream outputStream()
outputStream in interface net.javapla.jawn.core.http.Responsepublic boolean usingWriter()
usingWriter in interface net.javapla.jawn.core.http.Responsepublic boolean committed()
committed in interface net.javapla.jawn.core.http.Responsepublic void end()
end in interface net.javapla.jawn.core.http.Responsepublic void reset()
reset in interface net.javapla.jawn.core.http.Response