Uses of Class
com.mastfrog.acteur.Response
Packages that use Response
-
Uses of Response in com.mastfrog.acteur
Methods in com.mastfrog.acteur that return ResponseModifier and TypeMethodDescriptionabstract <T> ResponseResponse.add(HeaderValueType<T> headerType, T value) Add a header<T> ResponseResponse.addIfUnset(HeaderValueType<T> headerType, T value) final ResponseResponse.chunked()Set this response to be chunked.abstract ResponseResponse.chunked(boolean chunked) Set chunked encoding - if set to true, the headers will indicate that chunked encoding will be used and noContent-Lengthheader will be sent.abstract ResponseSet a simple string messageabstract ResponseResponse.contentWriter(ResponseWriter writer) Set a ResponseWriter which will be called after headers are written and flushed to the socket; this will cause chunked encoding to be used; the ResponseWriter will be called back repeatedly to stream more of the response until it says that it is done.abstract ResponseResponse.contentWriter(io.netty.channel.ChannelFutureListener listener) Set a ChannelFutureListener which will be called after headers are written and flushed to the socket; prefersetResponseWriter()to this method unless you are not using chunked encoding and want to stream your response (in which case, be sure to chunked(false) or you will have encoding errors).abstract ResponseSet a delay before the response body should be sent; this is used for cases such as authentication where failed requests should be throttled.protected final ResponseActeur.response()final ResponseResponse.setBodyWriter(ResponseWriter writer) Deprecated.use contentWriter() insteadfinal ResponseResponse.setBodyWriter(io.netty.channel.ChannelFutureListener listener) Deprecated.use contentWriter() insteadfinal ResponseResponse.setChunked(boolean chunked) Deprecated.use chunked() insteadfinal ResponseDeprecated.use delayedBy() insteadfinal ResponseResponse.setMessage(Object message) Deprecated.use content() insteadfinal ResponseResponse.setResponseCode(io.netty.handler.codec.http.HttpResponseStatus status) Deprecated.use status() insteadabstract ResponseResponse.status(io.netty.handler.codec.http.HttpResponseStatus status) Set the response codefinal ResponseResponse.unchunked()Set this response not to use HTTP chunked encoding.Methods in com.mastfrog.acteur with parameters of type ResponseModifier and TypeMethodDescriptionvoidCORSResponseDecorator.decorateCorsPreflight(HttpEvent evt, Response resp, Page page) Adds headers to an acteur response.protected voidApplication.onBeforeSendResponse(io.netty.handler.codec.http.HttpResponseStatus status, Event<?> event, Response response, Acteur acteur, Page page) voidResponseDecorator.onBeforeSendResponse(Application application, io.netty.handler.codec.http.HttpResponseStatus status, Event<?> event, Response response, Acteur acteur, Page page) -
Uses of Response in com.mastfrog.acteur.auth
Methods in com.mastfrog.acteur.auth with parameters of type ResponseModifier and TypeMethodDescriptionvoidAuthenticateBasicActeur.AuthenticationDecorator.onAuthenticationFailed(HttpEvent evt, Page page, Response response) Called when authetication failsevoidAuthenticateBasicActeur.AuthenticationDecorator.onAuthenticationSucceeded(HttpEvent evt, Page page, Response response, Object[] stuff) Called when authentication succeeds. -
Uses of Response in com.mastfrog.acteur.errors
Methods in com.mastfrog.acteur.errors with parameters of type ResponseModifier and TypeMethodDescriptionvoidErrorRenderer.render(ErrorResponse resp, Response into, Event<?> evt)