public class HeadContext extends ForwardingContext
ACCEPT, GMT, PORT, RFC1123, RFC1123_PATTERN, SECURE_PORT
Constructor and Description |
---|
HeadContext(Context context)
Creates a new forwarding context.
|
Modifier and Type | Method and Description |
---|---|
Context |
render(Object value)
Render a value and send the response to client.
|
Sender |
responseSender()
HTTP response channel as chunker.
|
OutputStream |
responseStream()
HTTP response channel as output stream.
|
PrintWriter |
responseWriter()
HTTP response channel as response writer.
|
Context |
send(AttachedFile file)
Send a file attached response.
|
Context |
send(byte[] data)
Send response data.
|
Context |
send(ByteBuffer data)
Send response data.
|
Context |
send(FileChannel file)
Send a file response.
|
Context |
send(InputStream input)
Send response data.
|
Context |
send(Path file)
Send a file response.
|
Context |
send(ReadableByteChannel channel)
Send response data.
|
Context |
send(StatusCode statusCode)
Send an empty response with the given status code.
|
Context |
send(String data)
Send response data.
|
Context |
send(String data,
Charset charset)
Send response data.
|
accept, accept, attribute, attribute, body, body, body, convert, cookie, cookieMap, decode, decoder, detach, dispatch, dispatch, file, files, files, flash, flash, form, form, form, formMap, formMultimap, forward, getAttributes, getHost, getHostAndPort, getMethod, getPort, getProtocol, getRemoteAddress, getRequestLength, getRequestPath, getRequestType, getRequestType, getRequestURL, getRequestURL, getResetHeadersOnError, getResponseCode, getResponseHeader, getResponseLength, getResponseType, getRoute, getRouter, getScheme, getServerHost, getServerPort, getUser, header, header, headerMap, headerMultimap, isInIoThread, isResponseStarted, isSecure, matches, multipart, multipart, multipart, multipartMap, multipartMultimap, onComplete, path, path, path, pathMap, query, query, query, queryMap, queryMultimap, queryString, removeResponseHeader, removeResponseHeaders, require, require, require, responseStream, responseStream, responseStream, responseWriter, responseWriter, responseWriter, responseWriter, responseWriter, send, send, sendError, sendError, sendRedirect, sendRedirect, session, session, sessionOrNull, setDefaultResponseType, setHost, setMethod, setPathMap, setPort, setRemoteAddress, setRequestPath, setResetHeadersOnError, setResponseCode, setResponseCode, setResponseCookie, setResponseHeader, setResponseHeader, setResponseHeader, setResponseHeader, setResponseLength, setResponseType, setResponseType, setResponseType, setRoute, setScheme, setUser, toString, upgrade, upgrade
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContextPath, readOnly, websocket
@Nonnull public Context send(@Nonnull Path file)
Context
send
in interface Context
send
in class ForwardingContext
file
- File response.@Nonnull public Context send(@Nonnull byte[] data)
Context
send
in interface Context
send
in class ForwardingContext
data
- Response.@Nonnull public Context send(@Nonnull String data)
Context
send
in interface Context
send
in class ForwardingContext
data
- Response. Use UTF-8 charset.@Nonnull public Context send(@Nonnull ByteBuffer data)
Context
send
in interface Context
send
in class ForwardingContext
data
- Response.@Nonnull public Context send(@Nonnull FileChannel file)
Context
send
in interface Context
send
in class ForwardingContext
file
- File response.@Nonnull public Context send(@Nonnull AttachedFile file)
Context
send
in interface Context
send
in class ForwardingContext
file
- Attached file.@Nonnull public Context send(@Nonnull InputStream input)
Context
send
in interface Context
send
in class ForwardingContext
input
- Response.@Nonnull public Context send(@Nonnull StatusCode statusCode)
Context
send
in interface Context
send
in class ForwardingContext
statusCode
- Status code.@Nonnull public Context send(@Nonnull ReadableByteChannel channel)
Context
send
in interface Context
send
in class ForwardingContext
channel
- Response input.@Nonnull public Context send(@Nonnull String data, @Nonnull Charset charset)
Context
send
in interface Context
send
in class ForwardingContext
data
- Response.charset
- Charset.@Nonnull public Context render(@Nonnull Object value)
Context
render
in interface Context
render
in class ForwardingContext
value
- Object value.@Nonnull public Sender responseSender()
Context
responseSender
in interface Context
responseSender
in class ForwardingContext
@Nonnull public OutputStream responseStream()
Context
responseStream
in interface Context
responseStream
in class ForwardingContext
@Nonnull public PrintWriter responseWriter()
Context
responseWriter
in interface Context
responseWriter
in class ForwardingContext
Copyright © 2020. All rights reserved.