Builds HTTP responses
| Type | Name and description |
|---|---|
io.netty.handler.codec.http.FullHttpResponse |
response |
| Constructor and description |
|---|
HttpResponseBuilder
(io.netty.handler.codec.http.FullHttpResponse response, java.nio.charset.Charset charset) |
| Type | Name and description |
|---|---|
HttpResponseBuilder |
created()Sets a created status |
HttpResponseBuilder |
forbidden()Sets an FORBIDDEN status |
HttpResponseBuilder |
notFound()Sets not found status |
HttpResponseBuilder |
ok()Sets an ok status |
HttpResponseBuilder |
status(int code)Sets the status of the response |
HttpResponseBuilder |
status(HttpStatus status)Sets the status of the response |
HttpResponseBuilder |
unauthorized()Sets an UNAUTHORIZED status |
| Methods inherited from class | Name |
|---|---|
class HttpMessageBuilder |
contentType, defaultContentType, defaultJsonContentType, header, json, json, json, json, prepareJsonBuilder, xml, xml, xml |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Sets a created status
Sets an FORBIDDEN status
Sets not found status
Sets an ok status
Sets the status of the response
code - The status codeSets the status of the response
code - The status codeSets an UNAUTHORIZED status